]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/cp/name-lookup.c
cp-tree.h (lang_type): Replace sorted_fields vector with bindings map.
authorNathan Sidwell <nathan@acm.org>
Mon, 28 Aug 2017 16:25:44 +0000 (16:25 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 28 Aug 2017 16:25:44 +0000 (16:25 +0000)
commitd876eb057408fa7904dfc28ae9bc199c69b10858
tree8434d17b7cde58c9b4cbe8ade9ed88eec87a9b91
parent41970ff1bc05e8f27b0e58d42782939a18769af1
cp-tree.h (lang_type): Replace sorted_fields vector with bindings map.

* cp-tree.h (lang_type): Replace sorted_fields vector with
bindings map.
(CLASSTYPE_SORTED_FIELDS): Delete.
(CLASSTYPE_BINDINGS): New.
* decl.c (finish_enum_value_list): Swap args of
insert_late_enum_def_bindings.
* name-lookup.c (lookup_field_1): Replace binary search of sorted
fields with map->get.
(sorted_fields_type_new, count_fields,
add_fields_to_record_type, add_enum_fields_to_record_type): Delete.
(add_class_member, add_class_members): New.
(set_class_bindings): Create map and insert.
(insert_late_enum_def_binding): Swap parms.  Use add_clasS_member.
* ptree.c (cxx_print_type): Delete sorted fields printing.

From-SVN: r251388
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/name-lookup.c
gcc/cp/ptree.c