summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beutil.c
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2007-12-14 16:14:34 +0100
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2007-12-14 16:14:34 +0100
commit7bf9fdac5c995fc159253d5dacf51802db724409 (patch)
tree2b0ee5092049c576196cce8405243047c3e6b48f /ir/be/beutil.c
parent8593cd346d72eaadad9185fe36f1a8caddced4be (diff)
restored old behavior of dump_ir_*_sched() functions: Can be called without schedule info available
[r16981]
Diffstat (limited to 'ir/be/beutil.c')
-rw-r--r--ir/be/beutil.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ir/be/beutil.c b/ir/be/beutil.c
index c196ff7..9c6a552 100644
--- a/ir/be/beutil.c
+++ b/ir/be/beutil.c
@@ -145,7 +145,8 @@ void dump_ir_block_graph_sched(ir_graph *irg, const char *suffix) {
DUMP_NODE_EDGE_FUNC old = get_dump_node_edge_hook();
dump_consts_local(0);
- set_dump_node_edge_hook(sched_edge_hook);
+ if (have_sched_info(irg))
+ set_dump_node_edge_hook(sched_edge_hook);
dump_ir_block_graph(irg, suffix);
set_dump_node_edge_hook(old);
}
@@ -154,7 +155,8 @@ void dump_ir_extblock_graph_sched(ir_graph *irg, const char *suffix) {
DUMP_NODE_EDGE_FUNC old = get_dump_node_edge_hook();
dump_consts_local(0);
- set_dump_node_edge_hook(sched_edge_hook);
+ if (have_sched_info(irg))
+ set_dump_node_edge_hook(sched_edge_hook);
dump_ir_extblock_graph(irg, suffix);
set_dump_node_edge_hook(old);
}