diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-05-29 15:01:20 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-05-29 15:01:20 +0000 |
commit | 3c9cca8848a19225074fbdbe597b889ab00114d8 (patch) | |
tree | f4f41ec1b0bf661f5747be5d0c071ff2a4e77f68 /gcc/auto-profile.c | |
parent | e514ab0c32480f03cbba49160caa822e7e5b3c94 (diff) | |
download | gcc-3c9cca8848a19225074fbdbe597b889ab00114d8.zip gcc-3c9cca8848a19225074fbdbe597b889ab00114d8.tar.gz gcc-3c9cca8848a19225074fbdbe597b889ab00114d8.tar.bz2 |
Stat hack representation
Stat hack representation
* name-lookup.c (STAT_HACK_P, STAT_TYPE, STAT_DECL)
MAYBE_STAT_DECL, MAYBE_STAT_TYPE): New.
(stat_hack): New.
(find_namespace_binding): Replace with ...
(find_namespace_slot): ... this.
(find_namespace_value): New.
(name_lookup::search_namespace_only,
name_lookup::adl_namespace_only): Adjust.
(update_binding): Add SLOT parameter, adjust.
(check_local_shadow): Use find_namespace_value.
(set_local_extern_decl_linkage): Likewise.
(do_pushdecl): Adjust for namespace slot.
(push_local_binding): Assert not a namespace binding.
(check_for_out_of_scope_variable): Use find_namespace_value.
(set_identifier_type_value_with_scope): Likewise.
(get_namespace_binding): Likewise.
(set_namespace_binding): Delete.
(set_global_binding): Directly update the binding.
(finish_namespace_using_decl): Likewise.
(lookup_type_scope_1): Use find_namespace_slot and update.
(do_push_nested_namespace): Use find_namespace_value.
From-SVN: r248574
Diffstat (limited to 'gcc/auto-profile.c')
0 files changed, 0 insertions, 0 deletions