aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/dump.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2017-05-19 14:12:14 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2017-05-19 14:12:14 +0000
commit6f2f4050aacf448f1e63a844845a1d0e7cde59ca (patch)
tree34862ee39fd2a98aebffc638e0b600035d0e75bb /gcc/cp/dump.c
parent546c8974ff51ef7554e18d94177fc953c0e54b95 (diff)
downloadgcc-6f2f4050aacf448f1e63a844845a1d0e7cde59ca.zip
gcc-6f2f4050aacf448f1e63a844845a1d0e7cde59ca.tar.gz
gcc-6f2f4050aacf448f1e63a844845a1d0e7cde59ca.tar.bz2
call.c (add_list_candidates): Use OVL_FIRST.
* call.c (add_list_candidates): Use OVL_FIRST. (build_new_method_call_1): Likewise. * cp-tree.h (OVL_SINGLE_P): New. (TYPE_HIDDEN_P): New. * decl.c (xref_tag_1): Use TYPE_HIDDEN_P. * dump.c (cp_tump_tree): Adjust overload dumping. * error.c (dump_decl): Use OVL_SINGLE_P, simplify context printing. * method.c (lazily_declare_fn): Assert we added it. * parser.c (cp_parser_nested_name_specifier): Use OVL_SINGLE_P, OVL_FIRST. (cp_parser_template_name): Use lkp_iterator. * pt.c (begin_template_parm_list): Fixup comment. (instantiate_class_template_1): Use TYPE_HIDDEN_P. * tree.c (ovl_iterator::remove_node): Cope with inherited ctors. (ovl_scope): Use lkp_iterator. From-SVN: r248285
Diffstat (limited to 'gcc/cp/dump.c')
-rw-r--r--gcc/cp/dump.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cp/dump.c b/gcc/cp/dump.c
index e150ae2..080fa1a 100644
--- a/gcc/cp/dump.c
+++ b/gcc/cp/dump.c
@@ -364,8 +364,10 @@ cp_dump_tree (void* dump_info, tree t)
break;
case OVERLOAD:
- dump_child ("crnt", OVL_CURRENT (t));
- dump_child ("chan", OVL_CHAIN (t));
+ dump_child ("name", OVL_NAME (t));
+ if (!dump_flag (di, TDF_SLIM, t))
+ for (lkp_iterator iter (t); iter; ++iter)
+ dump_child ("chld", *iter);
break;
case TRY_BLOCK: