mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Added Doxygen file.
Completely seperated type and symbol generation. Should fix a lot of bugs, but is not yet 100% complete.
This commit is contained in:
@@ -146,7 +146,7 @@ llvm::Module* Module::genLLVMModule(Ir* sir)
|
||||
sir->emitFunctionBodies();
|
||||
|
||||
// generate ModuleInfo
|
||||
genmoduleinfo();
|
||||
//genmoduleinfo();
|
||||
|
||||
// emit usedArray
|
||||
if (!ir.usedArray.empty())
|
||||
@@ -621,7 +621,7 @@ void Module::genmoduleinfo()
|
||||
LLConstant* c = 0;
|
||||
|
||||
// vtable
|
||||
c = moduleinfo->ir.irStruct->vtbl;
|
||||
c = moduleinfo->ir.irStruct->getVtblSymbol();
|
||||
initVec.push_back(c);
|
||||
|
||||
// monitor
|
||||
@@ -696,8 +696,7 @@ void Module::genmoduleinfo()
|
||||
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?
|
||||
|
||||
Reference in New Issue
Block a user