diff gen/declarations.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 5ebe8224988b
line wrap: on
line diff
--- a/gen/declarations.cpp	Fri Mar 27 17:54:27 2009 +0100
+++ b/gen/declarations.cpp	Fri Mar 27 21:50:32 2009 +0100
@@ -135,7 +135,7 @@
         if (nakedUse)
             gIR->usedArray.push_back(DtoBitCast(gvar, getVoidPtrType()));
 
-        gIR->constInitList.push_back(this);
+        DtoConstInitGlobal(this);
     }
     else
     {