name-lookup.h (lookup_field_1): Delete.
authorNathan Sidwell <nathan@acm.org>
Wed, 6 Sep 2017 15:32:46 +0000 (15:32 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 6 Sep 2017 15:32:46 +0000 (15:32 +0000)
commitb991151b284774c5fba4fc3148728c41a21c5004
tree9b92eab19e44e973d5308a183a902bfbcd54fae5
parentec7f007c776c7112f8134a6a8cd94a3463cd37e3
name-lookup.h (lookup_field_1): Delete.

* name-lookup.h (lookup_field_1): Delete.
(get_class_binding_direct, get_class_binding): Add type_or_fns arg.
* name-lookup.c (lookup_field_1): make static
(method_vec_binary_search, method_vec_linear_search): New.  Broken
out of ...
(get_class_binding_direct): ... here.  Add TYPE_OR_FNS argument.
Do complete search of this level.
(get_class_binding): Adjust.
* decl.c (reshape_init_class): Call get_class_binding.
* search.c (lookup_field_r): Move field searching into
get_class_binding_direct.

From-SVN: r251808
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/name-lookup.h
gcc/cp/search.c