From 890851125bcd47d1e55a1ed713111c899ad737ea Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 28 May 2008 11:43:30 +0000 Subject: [PATCH] bock marker can be dumped in the block title [r19807] --- ir/ir/irdump.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ir/ir/irdump.c b/ir/ir/irdump.c index 4be2f5e67..d3da52ca0 100644 --- a/ir/ir/irdump.c +++ b/ir/ir/irdump.c @@ -107,6 +107,8 @@ static int dump_node_idx_labels = 0; static int dump_anchors = 0; /** An option to dump the macro block edges. */ static int dump_macro_block_edges = 0; +/** An option to dump block marker in the block title */ +static int dump_block_marker = 0; int dump_dominator_information_flag = 0; int opt_dump_analysed_type_info = 1; @@ -255,6 +257,10 @@ void dump_macroblock_edges(int flag) { dump_macro_block_edges = flag; } +void dump_block_marker_in_title(int flag) { + dump_block_marker = flag; +} + /* -------------- some extended helper functions ----------------- */ /** @@ -816,7 +822,9 @@ int dump_node_opcode(FILE *F, ir_node *n) fprintf(F, "%s", get_irn_opname(n)); break; case iro_Block: - fprintf(F, "%s%s", is_Block_dead(n) ? "Dead " : "", get_irn_opname(n)); + fprintf(F, "%s%s%s", + is_Block_dead(n) ? "Dead " : "", get_irn_opname(n), + dump_block_marker ? (get_Block_mark(n) ? "*" : "") : ""); break; case iro_Conv: if (get_Conv_strict(n)) -- 2.20.1