split init_ir_prog() so part 1 can be called before mode initialization
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 3 Aug 2005 12:55:46 +0000 (12:55 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Wed, 3 Aug 2005 12:55:46 +0000 (12:55 +0000)
[r6379]

ir/common/firm.c

index feffffe..0ac2401 100644 (file)
@@ -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();