diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-11 19:09:51 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-11 19:09:51 +0000 |
commit | 505dd180fa93c15942be514aa8e9139bb024d5e8 (patch) | |
tree | 3aac882b8c9fd00c1a9d4c9f443568c35b01d4b2 /gcc/cp/cp-objcp-common.h | |
parent | 430af3cf5a8e5f96ff3ac491a9b37e6b2989fa24 (diff) | |
download | gcc-505dd180fa93c15942be514aa8e9139bb024d5e8.zip gcc-505dd180fa93c15942be514aa8e9139bb024d5e8.tar.gz gcc-505dd180fa93c15942be514aa8e9139bb024d5e8.tar.bz2 |
cp-lang.c (get_global_decls, [...]): Move to ...
* cp-lang.c (get_global_decls, cxx_pushdecl, LANG_HOOK_GETDECLS)
LANG_HOOKS_PUSHDECL): Move to ...
* cp-objcp-common.c (cp_get_global_decls, cp_pushdec)
LANG_HOOK_DECLS, LANG_HOOKS_PUSHDECL): ... here.
* cp-objcp-common.h (cp_get_global_decls, cp_pushdecl): Declare.
((--This line, and those below, will be ignored--
M cp/ChangeLog
M cp/cp-lang.c
M cp/cp-objcp-common.c
M cp/cp-objcp-common.h
From-SVN: r247923
Diffstat (limited to 'gcc/cp/cp-objcp-common.h')
-rw-r--r-- | gcc/cp/cp-objcp-common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gcc/cp/cp-objcp-common.h b/gcc/cp/cp-objcp-common.h index 6692ca8..0d752a7 100644 --- a/gcc/cp/cp-objcp-common.h +++ b/gcc/cp/cp-objcp-common.h @@ -31,6 +31,8 @@ extern int cp_decl_dwarf_attribute (const_tree, int); extern int cp_type_dwarf_attribute (const_tree, int); extern void cp_common_init_ts (void); extern tree cp_unit_size_without_reusable_padding (tree); +extern tree cp_get_global_decls (); +extern tree cp_pushdecl (tree); /* Lang hooks that are shared between C++ and ObjC++ are defined here. Hooks specific to C++ or ObjC++ go in cp/cp-lang.c and objcp/objcp-lang.c, @@ -165,4 +167,9 @@ extern tree cp_unit_size_without_reusable_padding (tree); #undef LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS #define LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS cp_protect_cleanup_actions + +#undef LANG_HOOKS_GETDECLS +#define LANG_HOOKS_GETDECLS cp_get_global_decls +#undef LANG_HOOKS_PUSHDECL +#define LANG_HOOKS_PUSHDECL cp_pushdecl #endif /* GCC_CP_OBJCP_COMMON */ |