summaryrefslogtreecommitdiffhomepage
path: root/ir/be/bera.c
diff options
context:
space:
mode:
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>2007-07-03 17:30:57 +0200
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>2007-07-03 17:30:57 +0200
commit79ed89a676afd08eb739330d46b85b1d1532aec1 (patch)
tree26f46988933435aa885aefaed9e81e3eb4175961 /ir/be/bera.c
parente583a06de4edba3c20d80c7afe895fd9ea50ac24 (diff)
add sopport for compile without WITH_LIBCORE
[r14902]
Diffstat (limited to 'ir/be/bera.c')
-rw-r--r--ir/be/bera.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ir/be/bera.c b/ir/be/bera.c
index b673bef..4eb3aa9 100644
--- a/ir/be/bera.c
+++ b/ir/be/bera.c
@@ -65,11 +65,12 @@ void be_allocate_registers(be_irg_t *birg)
}
}
-void be_init_ra(void)
-{
+void be_init_ra(void) {
+#ifdef WITH_LIBCORE
lc_opt_entry_t *be_grp = lc_opt_get_grp(firm_opt_get_root(), "be");
be_add_module_list_opt(be_grp, "regalloc", "register allocator",
&register_allocators, (void**) &selected_allocator);
+#endif
}
BE_REGISTER_MODULE_CONSTRUCTOR(init_be_ra);