name-lookup.h (get_global_value_if_present): New function.
commitc003e212ead438407d7968c2ada135f90307a8be
authorGabriel Dos Reis <gdr@integrable-solutions.net>
Sat, 27 Sep 2003 16:44:05 +0000 (27 16:44 +0000)
committerGabriel Dos Reis <gdr@gcc.gnu.org>
Sat, 27 Sep 2003 16:44:05 +0000 (27 16:44 +0000)
treed165f5d3ea36c74d1560aeb2b2e40406468c4db1
parent6398fbfddca9e92f601fa68764b2efccd3a30124
name-lookup.h (get_global_value_if_present): New function.

* name-lookup.h (get_global_value_if_present): New function.
(is_typename_at_global_scope): Likewise.
* except.c (do_begin_catch): Use get_global_value_if_present.
(do_end_catch): Likewise.
(do_allocate_exception): Likewise.
(do_free_exception): Likewise.
(build_throw): Likewise.
* parser.c (cp_parser_member_declaration): Likewise.
* rtti.c (throw_bad_cast): Likewise.
(throw_bad_typeid): Likewise.
* decl.c (check_tag_decl): Use is_typename_at_global_scope.
(grokdeclarator): Likewise.
* cp-tree.h (global_namespace): Move to name-lookup.h
* call.c (call_builtin_trap): Tidy.

From-SVN: r71858
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/except.c
gcc/cp/name-lookup.h
gcc/cp/parser.c
gcc/cp/rtti.c