diff gen/toobj.c @ 18:c05ef76f1c20 trunk

[svn r22] * Forgot to add std.stdio
author lindquist
date Thu, 04 Oct 2007 01:47:53 +0200
parents 6c6cd097bcdf
children 8d45266bbabe
line wrap: on
line diff
--- a/gen/toobj.c	Wed Oct 03 06:14:41 2007 +0200
+++ b/gen/toobj.c	Thu Oct 04 01:47:53 2007 +0200
@@ -34,6 +34,7 @@
 #include "id.h"
 #include "import.h"
 #include "template.h"
+#include "scope.h"
 
 #include "gen/irstate.h"
 #include "gen/elem.h"
@@ -51,7 +52,7 @@
     // start by deleting the old object file
     deleteObjFile();
 
-    // creaet a new ir state
+    // create a new ir state
     IRState ir;
     gIR = &ir;
     ir.dmodule = this;
@@ -85,7 +86,6 @@
         LLVM_DtoMain();
     }
 
-    /*
     // verify the llvm
     std::string verifyErr;
     Logger::println("Verifying module...");
@@ -96,7 +96,6 @@
     }
     else
         Logger::println("Verification passed!");
-    */
 
     // run passes
     // TODO
@@ -608,7 +607,7 @@
 
 void FuncDeclaration::toObjFile()
 {
-    if (llvmDModule == gIR->dmodule) {
+    if (llvmDModule) {
         assert(llvmValue != 0);
         return;
     }