From 659fd0d9f19bec605a3637a376a8538f3f763b33 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 14 Oct 2008 01:30:35 +0000 Subject: [PATCH] - call be_init_modules() last, so the option order is preserved [r22864] --- ir/be/bemain.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ir/be/bemain.c b/ir/be/bemain.c index 6fb7677e6..51df6cbcf 100644 --- a/ir/be/bemain.c +++ b/ir/be/bemain.c @@ -317,18 +317,17 @@ void be_opt_register(void) lc_opt_entry_t *be_grp; static int run_once = 0; - if (run_once) { + if (run_once) return; - } - run_once = 1; - - be_init_modules(); + run_once = 1; be_grp = lc_opt_get_grp(firm_opt_get_root(), "be"); lc_opt_add_table(be_grp, be_main_options); be_add_module_list_opt(be_grp, "isa", "the instruction set architecture", &isa_ifs, (void**) &isa_if); + + be_init_modules(); } /* Parse one argument. */ -- 2.20.1