name-lookup.c (find_local_binding): New, broken out of ...
authorNathan Sidwell <nathan@acm.org>
Thu, 18 May 2017 10:49:48 +0000 (10:49 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Thu, 18 May 2017 10:49:48 +0000 (10:49 +0000)
commit59a4ede94fed26e12efabde29d5d25a50f3ec59b
treeaa9749aea986bd272ed1d4683763dbf8f0f4b5d9
parent8985968cc416f890fc61acadb53433225fe4c66a
name-lookup.c (find_local_binding): New, broken out of ...

* name-lookup.c (find_local_binding): New, broken out of ...
(lookup_name_innermost_nonclass_level_1): ... here.  Call it.
(set_namespace_binding): Swap scope & name args.
(namespace_binding_1): Likewise.
(pushdecl_maybe_friend_1): Adjust set_namespace_binding call.
(push_overloaded_decl_1): Likewise.
(set_global_binding): Likewise.
(get_namespace_binding): Adjust namespace_binding_1 call.

From-SVN: r248191
gcc/cp/ChangeLog
gcc/cp/name-lookup.c