diff options
author | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-22 02:33:02 +0000 |
---|---|---|
committer | bryce <bryce@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-11-22 02:33:02 +0000 |
commit | 3119c950bd8c5f06ee2d61c2e8db88b98a7f8f0f (patch) | |
tree | 0e638461639b9ee591262162e137dc8d4432891b /gcc/langhooks-def.h | |
parent | 1ff6063a627720169bb5577dd50a1d0ed0e531e6 (diff) | |
download | ppe42-gcc-3119c950bd8c5f06ee2d61c2e8db88b98a7f8f0f.tar.gz ppe42-gcc-3119c950bd8c5f06ee2d61c2e8db88b98a7f8f0f.zip |
* tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
(lang_type_quals): Declare.
(dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
retrieve language-specific qualifiers for a type node, instead of
C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
lang_dump_tree.
* tree-dump.h: Rename from c-dump.h.
* c-common.h (C_TYPE_QUALS): Removed.
Move declarations for tree-dump.c interface to...
* tree.h: ... here. Remove lang_dump_tree.
* langhooks.h (struct lang_hooks_for_tree_dump): New.
(struct lang_hooks): Add tree_dump hooks.
* langhooks.c (lhd_tree_dump_dump_tree): New function.
(lhd_tree_dump_type_quals): New function.
* langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
Declare.
(LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
* Makefile.in: Move tree-dump.o to language-independent back-end.
cp:
* cp-tree.h (CP_TYPE_QUALS): Removed.
* decl.c (cxx_init_decl_processing): Don't set lang_dump_tree.
* cp-lang.c: Set LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN and
LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN.
* dump.c (cp_dump_tree): Use void* dump_info argument to match
lang-hooks prototype.
* call.c, cp-tree.h, cvt.c, decl.c, init.c, mangle.c, method.c, pt.c,
rtti.c, semantics.c, tree.c, typeck.c, typeck2.c: All references to
CP_TYPE_QUALS changed to cp_type_quals.
* Make-lang.in: References to c-dump.h changed to tree-dump.h.
(CXX_C_OBJS): Remove c-dump.o.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47257 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/langhooks-def.h')
-rw-r--r-- | gcc/langhooks-def.h | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gcc/langhooks-def.h b/gcc/langhooks-def.h index ef767511f23..7c8480f4f84 100644 --- a/gcc/langhooks-def.h +++ b/gcc/langhooks-def.h @@ -103,7 +103,19 @@ int lhd_tree_inlining_anon_aggr_type_p PARAMS ((tree)); LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P \ } \ -/* The whole thing. The structure is defined in toplev.h. */ +/* Tree dump hooks. */ +int lhd_tree_dump_dump_tree PARAMS ((void *, tree)); +int lhd_tree_dump_type_quals PARAMS ((tree)); + +#define LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN lhd_tree_dump_dump_tree +#define LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN lhd_tree_dump_type_quals + +#define LANG_HOOKS_TREE_DUMP_INITIALIZER { \ + LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN, \ + LANG_HOOKS_TREE_DUMP_TYPE_QUALS_FN \ +} \ + +/* The whole thing. The structure is defined in langhooks.h. */ #define LANG_HOOKS_INITIALIZER { \ LANG_HOOKS_NAME, \ LANG_HOOKS_IDENTIFIER_SIZE, \ @@ -121,7 +133,8 @@ int lhd_tree_inlining_anon_aggr_type_p PARAMS ((tree)); LANG_HOOKS_PRINT_TYPE, \ LANG_HOOKS_PRINT_IDENTIFIER, \ LANG_HOOKS_SET_YYDEBUG, \ - LANG_HOOKS_TREE_INLINING_INITIALIZER \ + LANG_HOOKS_TREE_INLINING_INITIALIZER, \ + LANG_HOOKS_TREE_DUMP_INITIALIZER \ } #endif /* GCC_LANG_HOOKS_DEF_H */ |