From c1dd347cbd7c1ac87b750a9100dfbde2f2190c63 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 24 Dec 2018 12:26:15 +0100 Subject: ipa-devirt.c (dump_targets): Cap number of targets printed. * ipa-devirt.c (dump_targets): Cap number of targets printed. (dump_possible_polymorphic_call_targets): Add verbose parameter. (ipa_devirt): Use it. * ipa-utils.h (dump_possible_polymorphic_call_targets): Add verbose parametrs. From-SVN: r267400 --- gcc/ipa-utils.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'gcc/ipa-utils.h') diff --git a/gcc/ipa-utils.h b/gcc/ipa-utils.h index b586935..02ce51b 100644 --- a/gcc/ipa-utils.h +++ b/gcc/ipa-utils.h @@ -67,7 +67,8 @@ odr_type get_odr_type (tree, bool insert = false); bool odr_type_p (const_tree); bool possible_polymorphic_call_target_p (tree ref, gimple *stmt, struct cgraph_node *n); void dump_possible_polymorphic_call_targets (FILE *, tree, HOST_WIDE_INT, - const ipa_polymorphic_call_context &); + const ipa_polymorphic_call_context &, + bool verbose = true); bool possible_polymorphic_call_target_p (tree, HOST_WIDE_INT, const ipa_polymorphic_call_context &, struct cgraph_node *); @@ -137,13 +138,14 @@ possible_polymorphic_call_targets (tree ref, /* Dump possible targets of a polymorphic call E into F. */ inline void -dump_possible_polymorphic_call_targets (FILE *f, struct cgraph_edge *e) +dump_possible_polymorphic_call_targets (FILE *f, struct cgraph_edge *e, + bool verbose = true) { ipa_polymorphic_call_context context(e); dump_possible_polymorphic_call_targets (f, e->indirect_info->otr_type, e->indirect_info->otr_token, - context); + context, verbose); } /* Return true if N can be possibly target of a polymorphic call of -- cgit v1.1