From 8264c84d54602b4ced60ec0a969b58b2c9c5a944 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Thu, 18 May 2017 16:23:46 +0200 Subject: Transform TDF_{lang,tree,ipa,rtl} to dump_kind enum. 2017-05-18 Martin Liska * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL. * dumpfile.c (dump_register): Use new enum dump_kind. (get_dump_file_name): Likewise. (dump_enable_all): Likewise. (dump_switch_p_1): Likewise. (enable_rtl_dump_file): Remove usage of TDF_RTL. * dumpfile.h (enum dump_kind): New enum type. (struct dump_file_info): Create constructor and format fields and comments. * passes.c (pass_manager::register_one_dump_file): Use num dump_kind. * statistics.c (statistics_early_init): Likewise. * tree-ssa-loop-prefetch.c (dump_mem_details): Replace TDF_TREE with TDF_SLIM. (gather_memory_references_ref): Likewise. From-SVN: r248206 --- gcc/passes.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gcc/passes.c') diff --git a/gcc/passes.c b/gcc/passes.c index a2fa9f7..e7c5d19 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -776,7 +776,7 @@ pass_manager::register_one_dump_file (opt_pass *pass) /* Buffer big enough to format a 32-bit UINT_MAX into. */ char num[11]; - dump_flags_t flags; + dump_kind dkind; int id; int optgroup_flags = OPTGROUP_NONE; gcc::dump_manager *dumps = m_ctxt->get_dumps (); @@ -798,18 +798,18 @@ pass_manager::register_one_dump_file (opt_pass *pass) if (pass->type == SIMPLE_IPA_PASS || pass->type == IPA_PASS) { prefix = "ipa-"; - flags = TDF_IPA; + dkind = DK_ipa; optgroup_flags |= OPTGROUP_IPA; } else if (pass->type == GIMPLE_PASS) { prefix = "tree-"; - flags = TDF_TREE; + dkind = DK_tree; } else { prefix = "rtl-"; - flags = TDF_RTL; + dkind = DK_rtl; } flag_name = concat (prefix, name, num, NULL); @@ -820,7 +820,7 @@ pass_manager::register_one_dump_file (opt_pass *pass) any dump messages are emitted properly under -fopt-info(-optall). */ if (optgroup_flags == OPTGROUP_NONE) optgroup_flags = OPTGROUP_OTHER; - id = dumps->dump_register (dot_name, flag_name, glob_name, flags, + id = dumps->dump_register (dot_name, flag_name, glob_name, dkind, optgroup_flags, true); set_pass_for_id (id, pass); -- cgit v1.1