diff options
author | Nathan Sidwell <nathan@acm.org> | 2017-08-28 16:25:44 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2017-08-28 16:25:44 +0000 |
commit | d876eb057408fa7904dfc28ae9bc199c69b10858 (patch) | |
tree | 8434d17b7cde58c9b4cbe8ade9ed88eec87a9b91 /gcc/cp/ptree.c | |
parent | 41970ff1bc05e8f27b0e58d42782939a18769af1 (diff) | |
download | gcc-d876eb057408fa7904dfc28ae9bc199c69b10858.tar.gz |
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
Diffstat (limited to 'gcc/cp/ptree.c')
-rw-r--r-- | gcc/cp/ptree.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/gcc/cp/ptree.c b/gcc/cp/ptree.c index d377efc8cc5..24efe27e5e2 100644 --- a/gcc/cp/ptree.c +++ b/gcc/cp/ptree.c @@ -151,9 +151,6 @@ cxx_print_type (FILE *file, tree node, int indent) fputs (" delete[]", file); if (TYPE_HAS_COPY_ASSIGN (node)) fputs (" this=(X&)", file); - if (CLASSTYPE_SORTED_FIELDS (node)) - fprintf (file, " sorted-fields %p", - (void *) CLASSTYPE_SORTED_FIELDS (node)); if (TREE_CODE (node) == RECORD_TYPE) { |