mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-19 14:23:13 +01:00
Eliminated the need for resolve, declare, const-init and define lists to drive code generation.
This commit is contained in:
@@ -145,6 +145,9 @@ llvm::Module* Module::genLLVMModule(Ir* sir)
|
||||
// generate ModuleInfo
|
||||
genmoduleinfo();
|
||||
|
||||
// emit function bodies
|
||||
sir->emitFunctionBodies();
|
||||
|
||||
// emit usedArray
|
||||
if (!ir.usedArray.empty())
|
||||
{
|
||||
@@ -599,7 +602,7 @@ void Module::genmoduleinfo()
|
||||
fatal();
|
||||
}
|
||||
|
||||
DtoForceConstInitDsymbol(moduleinfo);
|
||||
moduleinfo->codegen(Type::sir);
|
||||
|
||||
// check for patch
|
||||
if (moduleinfo->fields.dim != 9)
|
||||
|
||||
Reference in New Issue
Block a user