diff gen/toobj.cpp @ 936:2ebac4750adb

Removed some dead code. Fixed assertion filenames for imported template instances. Fixes #152 .
author Tomas Lindquist Olsen <tomas.l.olsen@gmail.com>
date Wed, 04 Feb 2009 02:10:23 +0100
parents d3a6f1a96731
children 03d7c4aac654
line wrap: on
line diff
--- a/gen/toobj.cpp	Tue Feb 03 17:27:01 2009 -0700
+++ b/gen/toobj.cpp	Wed Feb 04 02:10:23 2009 +0100
@@ -99,8 +99,9 @@
     ir.module = new llvm::Module(mname);
 
     // module ir state
-    // might already exist via import, just overwrite...
-    //FIXME: is there a good reason for overwriting?
+    // might already exist via import, just overwrite since
+    // the global created for the filename must belong to the right llvm module
+    // FIXME: but shouldn't this always get reset between modules? like other IrSymbols
     this->ir.irModule = new IrModule(this, srcfile->toChars());
 
     // set target stuff