summaryrefslogtreecommitdiff
path: root/gcc/langhooks.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-19 13:10:36 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-19 13:10:36 +0000
commit2a8a8d7bd28ef295b15f5b1c0cd17e73409c80a6 (patch)
treeb57253306ce6fa1d70381c3429ede182b0b3d246 /gcc/langhooks.c
parenta978134eac8ab9a3248405b4114cff2e957ed812 (diff)
toplev.c (general_init): Call register dump lang hook.
LANG_HOOK_REGISTER_DUMPS gcc/ * toplev.c (general_init): Call register dump lang hook. * doc/invoke.texi: Document -fdump-lang option family. * dumpfile.c (dump_files): Remove class dump here. (FIRST_AUTO_NUMBERED_DUMP): Adjust. * dumpfile.h (tree_dump_index): Remove TDI_class. * langhooks-def.h (lhd_register_dumps): Declare. (LANG_HOOKS_REGISTER_DUMPS): Define. (LANG_HOOKS_INITIALIZER): Add it. * langhooks.c (lhd_register_dumps): Define. * langhooks.h (struct lang_hooks): Add register_dumps. c-family/ * c-opts.c (class_dump_file, class_dump_flags): Delete. (c_common_parse_file): Remove class dump handling. (get_dump_info): Likewise. cp/ * class.c (class_dump_id): Define. (dump_class_hierarchy, dump_vtable, dump_vtt): Use it. * cp-objcp-common.c (cp_register_dumps): New. * cp-objcp-common.h (cp_register_dumps): Declare. (LANG_HOOKS_REGISTER_DUMPS): Override. * cp-tree.h (class_dump_id): Declare. testsuite/ * g++.dg/inherit/covariant7.C: Adjust. From-SVN: r248271
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r--gcc/langhooks.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c
index dc19db71db2..c54b790f0cc 100644
--- a/gcc/langhooks.c
+++ b/gcc/langhooks.c
@@ -322,6 +322,12 @@ lhd_initialize_diagnostics (diagnostic_context *ctx ATTRIBUTE_UNUSED)
{
}
+/* Called to register dumps. */
+void
+lhd_register_dumps (gcc::dump_manager *)
+{
+}
+
/* Called to perform language-specific options initialization. */
void
lhd_init_options (unsigned int decoded_options_count ATTRIBUTE_UNUSED,