summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespilldaemel.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2010-07-02 18:58:17 +0200
committerMatthias Braun <matze@braunis.de>2010-07-02 18:58:17 +0200
commit18814151f8c0ea17b2a7bf84c82ee3c2e66d6a6b (patch)
tree6cff8b83ad82376aa997841e70c0174cc8735ac2 /ir/be/bespilldaemel.c
parent69849fc8fe452350bfbd2ad67f1898147fc906b4 (diff)
change spiller and related interface to use ir_graph* instead of be_irg_t*
[r27691]
Diffstat (limited to 'ir/be/bespilldaemel.c')
-rw-r--r--ir/be/bespilldaemel.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ir/be/bespilldaemel.c b/ir/be/bespilldaemel.c
index e364601..c9ef9db 100644
--- a/ir/be/bespilldaemel.c
+++ b/ir/be/bespilldaemel.c
@@ -377,17 +377,16 @@ static void spill_block(ir_node *block, void *data)
ir_nodeset_destroy(&live_nodes);
}
-static void be_spill_daemel(be_irg_t *birg, const arch_register_class_t *new_cls)
+static void be_spill_daemel(ir_graph *irg, const arch_register_class_t *new_cls)
{
- ir_graph *irg = be_get_birg_irg(birg);
- n_regs = new_cls->n_regs - be_put_ignore_regs(birg, new_cls, NULL);
+ n_regs = new_cls->n_regs - be_put_ignore_regs(irg, new_cls, NULL);
if (n_regs == 0)
return;
be_liveness_assure_sets(be_assure_liveness(irg));
- spill_env = be_new_spill_env(birg);
+ spill_env = be_new_spill_env(irg);
cls = new_cls;
lv = be_get_irg_liveness(irg);
spilled_nodes = bitset_malloc(get_irg_last_idx(irg));