summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bespill.c
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-06-19 07:15:54 +0200
committerMatthias Braun <matze@braunis.de>2015-06-19 07:17:53 +0200
commitf1d0154c8a329e88394f24c39093f6566714d493 (patch)
tree50ba2c4f3a8adf629d8f0f6cde17d37c23915f99 /ir/be/bespill.c
parent89a5cac65f5e45b405217c7dc167eb2b27ed2206 (diff)
break arch_isa_if_t furhter apart by moving spilling related callbacks into an own struct
Diffstat (limited to 'ir/be/bespill.c')
-rw-r--r--ir/be/bespill.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir/be/bespill.c b/ir/be/bespill.c
index 29f2ec7..aec90b4 100644
--- a/ir/be/bespill.c
+++ b/ir/be/bespill.c
@@ -48,10 +48,10 @@ void be_register_spiller(const char *name, be_spill_func spiller)
be_add_module_to_list(&spillers, name, spiller);
}
-void be_do_spill(ir_graph *irg, const arch_register_class_t *cls)
+void be_do_spill(ir_graph *irg, const arch_register_class_t *cls,
+ const regalloc_if_t *regif)
{
- assert(selected_spiller != NULL);
- selected_spiller(irg, cls);
+ selected_spiller(irg, cls, regif);
}
BE_REGISTER_MODULE_CONSTRUCTOR(be_init_spilloptions)