diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-10-05 12:10:55 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-10-05 12:10:55 +0000 |
commit | 87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123 (patch) | |
tree | 2d41124961ddfd8ba4e2c6256e1ea90ef095ee6d /gcc/cp/rtti.c | |
parent | 9eabdc5e16a1fe10028244f779cde7b01bca7629 (diff) | |
download | gcc-87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123.zip gcc-87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123.tar.gz gcc-87e3d7cfb5c5c9cf265e5ee803cce904f2a5a123.tar.bz2 |
[C++ PATCH] Kill IDENTIFIER_GLOBAL_VALUE
https://gcc.gnu.org/ml/gcc-patches/2017-10/msg00239.html
Kill IDENTIFIER_GLOBAL_VALUE, SET_IDENTIFIER_GLOBAL_VALUE
* cp-tree.h (IDENTIFIER_GLOBAL_VALUE,
SET_IDENTIFIER_GLOBAL_VALUE): Delete.
* name-lookup.h (set_global_binding): Remove NAME parm.
(get_global_binding): New inline fn.
* name-lookup.c (set_global_binding): Remove NAME parm. Adjust.
(identifier_global_value): Move to ...
* cp-objcp-common.c (identifier_global_value): ... here.
* class.c (build_ctor_vtbl_group, build_vtbl_initializer): Adjust.
* decl.c (record_builtin_type, expand_static_init,
grokdeclarator): Adjust.
* decl2.c (get_guard, get_local_tls_init_fn, get_tls_init_fn,
get_tls_wrapper_fn, maybe_warn_sized_delete): Adjust.
* except.c (declare_library_fn, build_throw): Adjust.
* init.c (throw_bad_array_length): Adjust.
* rtti.c (throw_bad_cast, throw_bad_typeid, get_tinfo_decl): Adjust.
From-SVN: r253444
Diffstat (limited to 'gcc/cp/rtti.c')
-rw-r--r-- | gcc/cp/rtti.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cp/rtti.c b/gcc/cp/rtti.c index a660cdd..5b2326c 100644 --- a/gcc/cp/rtti.c +++ b/gcc/cp/rtti.c @@ -52,7 +52,7 @@ along with GCC; see the file COPYING3. If not see type_info objects for static initialization. The type information VAR_DECL of a type is held on the - IDENTIFIER_GLOBAL_VALUE of the type's mangled name. That VAR_DECL + get_global_binding of the type's mangled name. That VAR_DECL will be the internal type. It will usually have the correct internal type reflecting the kind of type it represents (pointer, array, function, class, inherited class, etc). When the type it @@ -226,7 +226,7 @@ throw_bad_cast (void) if (!fn) { tree name = get_identifier ("__cxa_bad_cast"); - fn = IDENTIFIER_GLOBAL_VALUE (name); + fn = get_global_binding (name); if (!fn) fn = push_throw_library_fn (name, build_function_type_list (ptr_type_node, NULL_TREE)); @@ -245,7 +245,7 @@ throw_bad_typeid (void) if (!fn) { tree name = get_identifier ("__cxa_bad_typeid"); - fn = IDENTIFIER_GLOBAL_VALUE (name); + fn = get_global_binding (name); if (!fn) { tree t = build_reference_type (const_type_info_type_node); @@ -446,7 +446,7 @@ get_tinfo_decl (tree type) name = mangle_typeinfo_for_type (type); - d = IDENTIFIER_GLOBAL_VALUE (name); + d = get_global_binding (name); if (!d) { int ix = get_pseudo_ti_index (type); |