diff gen/toobj.cpp @ 1148:3d1b16dabd25

Eliminated the need for resolve, declare, const-init and define lists to drive code generation.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Fri, 27 Mar 2009 21:50:32 +0100
parents dbe4af57b240
children f528e55fb32f
line wrap: on
line diff
--- a/gen/toobj.cpp	Fri Mar 27 17:54:27 2009 +0100
+++ b/gen/toobj.cpp	Fri Mar 27 21:50:32 2009 +0100
@@ -145,6 +145,9 @@
     // generate ModuleInfo
     genmoduleinfo();
 
+    // emit function bodies
+    sir->emitFunctionBodies();
+
     // emit usedArray
     if (!ir.usedArray.empty())
     {
@@ -599,7 +602,7 @@
         fatal();
     }
 
-    DtoForceConstInitDsymbol(moduleinfo);
+    moduleinfo->codegen(Type::sir);
 
     // check for patch
     if (moduleinfo->fields.dim != 9)