aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2017-05-17 11:01:36 +0200
committerMartin Liska <marxin@gcc.gnu.org>2017-05-17 09:01:36 +0000
commit1a81741814618bc19d13de0b9e59c0324114cc86 (patch)
tree10c3b673319b0cdfae3db0314371cb6732181161 /gcc/cp/class.c
parentb2fa0a8bdfe15c427f5750f008509ed518683e2b (diff)
downloadgcc-1a81741814618bc19d13de0b9e59c0324114cc86.zip
gcc-1a81741814618bc19d13de0b9e59c0324114cc86.tar.gz
gcc-1a81741814618bc19d13de0b9e59c0324114cc86.tar.bz2
Introduce dump_flags_t type and use it instead of int type.
2017-05-17 Martin Liska <mliska@suse.cz> * class.c (dump_class_hierarchy): Introduce dump_flags_t type and use it instead of int type. (dump_vtable): Likewise. (dump_vtt): Likewise. * decl2.c (dump_tu): Likewise. 2017-05-17 Martin Liska <mliska@suse.cz> * c-common.h: Introduce dump_flags_t type and use it instead of int type. * c-gimplify.c (c_genericize): Likewise. * c-opts.c: Likewise. 2017-05-17 Martin Liska <mliska@suse.cz> * c-decl.c (c_parse_final_cleanups): Introduce dump_flags_t type and use it instead of int type. 2017-05-17 Martin Liska <mliska@suse.cz> * cfg.c: Introduce dump_flags_t type and use it instead of int type. * cfg.h: Likewise. * cfghooks.c: Likewise. * cfghooks.h (struct cfg_hooks): Likewise. * cfgrtl.c: Likewise. * cfgrtl.h: Likewise. * cgraph.c (cgraph_node::get_body): Likewise. * coretypes.h: Likewise. * domwalk.c: Likewise. * domwalk.h: Likewise. * dumpfile.c (struct dump_option_value_info): Likewise. (dump_enable_all): Likewise. (dump_switch_p_1): Likewise. (opt_info_switch_p): Likewise. * dumpfile.h (enum tree_dump_index): Likewise. (struct dump_file_info): Likewise. * genemit.c: Likewise. * generic-match-head.c: Likewise. * gengtype.c (open_base_files): Likewise. * gimple-pretty-print.c: Likewise. * gimple-pretty-print.h: Likewise. * graph.c (print_graph_cfg): Likewise. * graphite-scop-detection.c (dot_all_sese): Likewise. * ipa-devirt.c (build_type_inheritance_graph): Likewise. * loop-unroll.c (report_unroll): Likewise. * passes.c (pass_manager::register_one_dump_file): Likewise. * print-tree.c: Likewise. * statistics.c: Likewise. * tree-cfg.c: Likewise. * tree-cfg.h: Likewise. * tree-dfa.c: Likewise. * tree-dfa.h: Likewise. * tree-dump.c (dump_function): Likewise. * tree-dump.h (struct dump_info): Likewise. * tree-pretty-print.c: Likewise. * tree-pretty-print.h: Likewise. * tree-ssa-live.c: Likewise. * tree-ssa-live.h: Likewise. * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise. * tree-vect-loop.c: Likewise. * tree-vect-slp.c: Likewise. From-SVN: r248140
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 6726a6f..ee2bb08 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -172,9 +172,9 @@ static tree find_final_overrider (tree, tree, tree);
static int make_new_vtable (tree, tree);
static tree get_primary_binfo (tree);
static int maybe_indent_hierarchy (FILE *, int, int);
-static tree dump_class_hierarchy_r (FILE *, int, tree, tree, int);
+static tree dump_class_hierarchy_r (FILE *, dump_flags_t, tree, tree, int);
static void dump_class_hierarchy (tree);
-static void dump_class_hierarchy_1 (FILE *, int, tree);
+static void dump_class_hierarchy_1 (FILE *, dump_flags_t, tree);
static void dump_array (FILE *, tree);
static void dump_vtable (tree, tree, tree);
static void dump_vtt (tree, tree);
@@ -8823,7 +8823,7 @@ maybe_indent_hierarchy (FILE * stream, int indent, int indented_p)
static tree
dump_class_hierarchy_r (FILE *stream,
- int flags,
+ dump_flags_t flags,
tree binfo,
tree igo,
int indent)
@@ -8916,7 +8916,7 @@ dump_class_hierarchy_r (FILE *stream,
/* Dump the BINFO hierarchy for T. */
static void
-dump_class_hierarchy_1 (FILE *stream, int flags, tree t)
+dump_class_hierarchy_1 (FILE *stream, dump_flags_t flags, tree t)
{
fprintf (stream, "Class %s\n", type_as_string (t, TFF_PLAIN_IDENTIFIER));
fprintf (stream, " size=%lu align=%lu\n",
@@ -8942,7 +8942,7 @@ debug_class (tree t)
static void
dump_class_hierarchy (tree t)
{
- int flags;
+ dump_flags_t flags;
FILE *stream = get_dump_info (TDI_class, &flags);
if (stream)
@@ -8976,7 +8976,7 @@ dump_array (FILE * stream, tree decl)
static void
dump_vtable (tree t, tree binfo, tree vtable)
{
- int flags;
+ dump_flags_t flags;
FILE *stream = get_dump_info (TDI_class, &flags);
if (!stream)
@@ -9005,7 +9005,7 @@ dump_vtable (tree t, tree binfo, tree vtable)
static void
dump_vtt (tree t, tree vtt)
{
- int flags;
+ dump_flags_t flags;
FILE *stream = get_dump_info (TDI_class, &flags);
if (!stream)