diff gen/toir.cpp @ 1147:dbe4af57b240

Changed use of toObjFile to a new codegen method. More versioning of DMD specific codegen code.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Fri, 27 Mar 2009 17:54:27 +0100
parents 1860414bf3b7
children 3d1b16dabd25
line wrap: on
line diff
--- a/gen/toir.cpp	Thu Mar 26 20:45:53 2009 +0100
+++ b/gen/toir.cpp	Fri Mar 27 17:54:27 2009 +0100
@@ -147,7 +147,7 @@
 
             // take care of forward references of global variables
             if (vd->isDataseg() || (vd->storage_class & STCextern)) {
-                vd->toObjFile(0); // TODO: multiobj
+                vd->codegen(Type::sir);
             }
 
             LLValue* val;