From e9dab18429b66e680980eaba11589439a93ebd76 Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Wed, 3 Aug 2005 12:55:46 +0000 Subject: [PATCH] split init_ir_prog() so part 1 can be called before mode initialization [r6379] --- ir/common/firm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ir/common/firm.c b/ir/common/firm.c index feffffef3..0ac240196 100644 --- a/ir/common/firm.c +++ b/ir/common/firm.c @@ -72,6 +72,8 @@ init_firm(const firm_parameter_t *param) init_tpop(); /* create an obstack and put all tarvals in a pdeq */ init_tarval_1(); + /* Builds a basic program representation, so modes can be added. */ + init_irprog_1(); /* initialize all modes an ir node can consist of */ init_mode(); /* initialize tarvals, and floating point arithmetic */ @@ -88,7 +90,7 @@ init_firm(const firm_parameter_t *param) firm_init_reassociation(); /* Builds a construct allowing to access all information to be constructed later. */ - init_irprog(); + init_irprog_2(); /* Constructs some idents needed. */ init_type(); init_entity(); -- 2.20.1