diff options
author | Mike Stump <mrs@apple.com> | 2005-11-18 23:40:29 +0000 |
---|---|---|
committer | Mike Stump <mrs@gcc.gnu.org> | 2005-11-18 23:40:29 +0000 |
commit | 7bbd0aab4cbbb32562e015d10419d4c1616104bb (patch) | |
tree | 4485e94760f589adf0f27e512f1e74736da95b8d /gcc/langhooks.h | |
parent | 186abafe49fabf3f0ee8a58c54c36e256846172e (diff) | |
download | gcc-7bbd0aab4cbbb32562e015d10419d4c1616104bb.zip gcc-7bbd0aab4cbbb32562e015d10419d4c1616104bb.tar.gz gcc-7bbd0aab4cbbb32562e015d10419d4c1616104bb.tar.bz2 |
c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
* c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
* config/darwin-c.c (darwin_pragma_unused): Likewise.
* c-decl.c (lookup_name_two) Remove.
* c-tree.h (lookup_name_two): Remove.
* c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
* langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
(LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
* langhooks.h (lang_hooks_for_decls): Add lookup_name.
cp:
* cp-objcp-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
* name-lookup.c (lookup_name_two): Remove.
(lookup_name_one): Add.
* name-lookup.h (lookup_name_two): Remove.
(lookup_name_one): Add.
From-SVN: r107196
Diffstat (limited to 'gcc/langhooks.h')
-rw-r--r-- | gcc/langhooks.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/langhooks.h b/gcc/langhooks.h index cdb547c7..22346fe 100644 --- a/gcc/langhooks.h +++ b/gcc/langhooks.h @@ -170,6 +170,12 @@ struct lang_hooks_for_decls /* Returns the chain of decls so far in the current scope level. */ tree (*getdecls) (void); +/* Look up NAME in the current scope and its superiors + in the namespace of variables, functions and typedefs. + Return a ..._DECL node of some kind representing its definition, + or return 0 if it is undefined. */ + tree (*lookup_name) (tree); + /* Returns true when we should warn for an unused global DECL. We will already have checked that it has static binding. */ bool (*warn_unused_global) (tree); |