diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2018-12-24 12:26:15 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-12-24 11:26:15 +0000 |
commit | c1dd347cbd7c1ac87b750a9100dfbde2f2190c63 (patch) | |
tree | 58767bda9b1fd424ad53a10af66c53629def0dc6 /gcc/ipa-utils.h | |
parent | 3d7bef8def04568aa63743b7edd46a85af11152a (diff) | |
download | gcc-c1dd347cbd7c1ac87b750a9100dfbde2f2190c63.zip gcc-c1dd347cbd7c1ac87b750a9100dfbde2f2190c63.tar.gz gcc-c1dd347cbd7c1ac87b750a9100dfbde2f2190c63.tar.bz2 |
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
Diffstat (limited to 'gcc/ipa-utils.h')
-rw-r--r-- | gcc/ipa-utils.h | 8 |
1 files changed, 5 insertions, 3 deletions
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 |