summaryrefslogtreecommitdiffhomepage
path: root/ir/common
diff options
context:
space:
mode:
authorChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 17:53:12 +0200
committerChristoph Mallon <mallon@cs.uni-saarland.de>2015-07-27 21:15:40 +0200
commit816da49ea8f27d475a0fe1f3e6bca61aa395f480 (patch)
treeb33da67931bdf58c0f205c84a67ed43343c36753 /ir/common
parent77aece395066b768051cb726ba5e6cc3a2e01342 (diff)
ir, be: The backend does not need to be initialized early anymore, so do it later.
Now we can use things, which get initialized for the middle end, e.g. modes.
Diffstat (limited to 'ir/common')
-rw-r--r--ir/common/firm.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ir/common/firm.c b/ir/common/firm.c
index 97aba50..7022145 100644
--- a/ir/common/firm.c
+++ b/ir/common/firm.c
@@ -51,9 +51,6 @@ lc_opt_entry_t *firm_opt_get_root(void)
void ir_init(void)
{
- /* for historical reasons be_init must be run first */
- firm_be_init();
-
firm_init_flags();
init_ident();
init_edges();
@@ -78,6 +75,7 @@ void ir_init(void)
init_execfreq();
init_stat();
+ firm_be_init();
#ifdef DEBUG_libfirm
firm_init_debugger();