diff gen/toobj.cpp @ 1228:79758fd2f48a

Added Doxygen file. Completely seperated type and symbol generation. Should fix a lot of bugs, but is not yet 100% complete.
author Tomas Lindquist Olsen <tomas.l.olsen gmail.com>
date Wed, 15 Apr 2009 20:06:25 +0200
parents a6dbd571d417
children fc579f389f9a
line wrap: on
line diff
--- a/gen/toobj.cpp	Mon Apr 13 17:42:36 2009 +0200
+++ b/gen/toobj.cpp	Wed Apr 15 20:06:25 2009 +0200
@@ -146,7 +146,7 @@
     sir->emitFunctionBodies();
 
     // generate ModuleInfo
-    genmoduleinfo();
+    //genmoduleinfo();
 
     // emit usedArray
     if (!ir.usedArray.empty())
@@ -621,7 +621,7 @@
     LLConstant* c = 0;
 
     // vtable
-    c = moduleinfo->ir.irStruct->vtbl;
+    c = moduleinfo->ir.irStruct->getVtblSymbol();
     initVec.push_back(c);
 
     // monitor
@@ -696,8 +696,7 @@
             continue;
         }
         Logger::println("class: %s", cd->toPrettyChars());
-        assert(cd->ir.irStruct->classInfo);
-        c = DtoBitCast(cd->ir.irStruct->classInfo, getPtrToType(classinfoTy));
+        c = DtoBitCast(cd->ir.irStruct->getClassInfoSymbol(), getPtrToType(classinfoTy));
         classInits.push_back(c);
     }
     // has class array?