summaryrefslogtreecommitdiffhomepage
path: root/ir/be/beblocksched.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-04-30 15:10:23 +0200
committerMatthias Braun <matze@braunis.de>2010-04-30 15:10:23 +0200
commit72fca46dfebc45e1c8466d0b7035a68b9d1495fe (patch)
tree7d64c8dfbebae3228df0f3039b623ed8c18d3db9 /ir/be/beblocksched.c
parent523e83e345a3dddd5bb82d8090aa26de3b290df3 (diff)
modernize TEMPLATE backend and simplify some backend APIs
[r27460]
Diffstat (limited to 'ir/be/beblocksched.c')
-rw-r--r--ir/be/beblocksched.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ir/be/beblocksched.c b/ir/be/beblocksched.c
index ecf3884..f8c19c1 100644
--- a/ir/be/beblocksched.c
+++ b/ir/be/beblocksched.c
@@ -745,8 +745,11 @@ void be_init_blocksched(void)
FIRM_DBG_REGISTER(dbg, "firm.be.blocksched");
}
-ir_node **be_create_block_schedule(ir_graph *irg, ir_exec_freq *execfreqs)
+ir_node **be_create_block_schedule(ir_graph *irg)
{
+ const be_irg_t *birg = be_birg_from_irg(irg);
+ ir_exec_freq *execfreqs = be_get_birg_exec_freq(birg);
+
switch (algo) {
case BLOCKSCHED_GREEDY:
case BLOCKSCHED_NAIV: