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-lang.c | |
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-lang.c')
-rw-r--r-- | gcc/cp/cp-lang.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/gcc/cp/cp-lang.c b/gcc/cp/cp-lang.c index b5f11e3..defcbdc 100644 --- a/gcc/cp/cp-lang.c +++ b/gcc/cp/cp-lang.c @@ -35,8 +35,6 @@ static tree cp_eh_personality (void); static tree get_template_innermost_arguments_folded (const_tree); static tree get_template_argument_pack_elems_folded (const_tree); static tree cxx_enum_underlying_base_type (const_tree); -static tree get_global_decls (); -static tree cxx_pushdecl (tree); /* Lang hooks common to C++ and ObjC++ are declared in cp/cp-objcp-common.h; consequently, there should be very few hooks below. */ @@ -80,10 +78,6 @@ static tree cxx_pushdecl (tree); #define LANG_HOOKS_EH_RUNTIME_TYPE build_eh_type_type #undef LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE #define LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE cxx_enum_underlying_base_type -#undef LANG_HOOKS_GETDECLS -#define LANG_HOOKS_GETDECLS get_global_decls -#undef LANG_HOOKS_PUSHDECL -#define LANG_HOOKS_PUSHDECL cxx_pushdecl /* Each front end provides its own lang hook initializer. */ struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER; @@ -235,21 +229,6 @@ tree cxx_enum_underlying_base_type (const_tree type) return underlying_type; } -/* Return the list of decls in the global namespace. */ - -static tree -get_global_decls () -{ - return NAMESPACE_LEVEL (global_namespace)->names; -} - -/* Push DECL into the current scope. */ - -static tree -cxx_pushdecl (tree decl) -{ - return pushdecl (decl); -} #include "gt-cp-cp-lang.h" #include "gtype-cp.h" |