mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-14 11:53:13 +01:00
First merge of 2.064 beta.
This corresponds to DMD commit a913ce4bc59a94a022a27e390fc841f4aededffb. Doesn't build Phobos yet.
This commit is contained in:
committed by
Kai Nacke
parent
c400d180d2
commit
cb341586e3
@@ -382,10 +382,6 @@ llvm::Module* Module::genLLVMModule(llvm::LLVMContext& context)
|
||||
error("is missing 'class Object'");
|
||||
fatal();
|
||||
}
|
||||
if (!ClassDeclaration::classinfo) {
|
||||
error("is missing 'class ClassInfo'");
|
||||
fatal();
|
||||
}
|
||||
|
||||
LLVM_D_InitRuntime();
|
||||
|
||||
@@ -471,8 +467,8 @@ void Module::genmoduleinfo()
|
||||
// check for patch
|
||||
else
|
||||
{
|
||||
unsigned sizeof_ModuleInfo = 16 * Target::ptrsize;
|
||||
if (sizeof_ModuleInfo != moduleinfo->structsize)
|
||||
// The base struct should consist only of _flags/_index.
|
||||
if (moduleinfo->structsize != 4 + 4)
|
||||
{
|
||||
error("object.d ModuleInfo class is incorrect");
|
||||
fatal();
|
||||
@@ -484,7 +480,7 @@ void Module::genmoduleinfo()
|
||||
|
||||
// some types
|
||||
LLType* moduleinfoTy = moduleinfo->type->irtype->getLLType();
|
||||
LLType* classinfoTy = ClassDeclaration::classinfo->type->irtype->getLLType();
|
||||
LLType* classinfoTy = Type::typeinfoclass->type->irtype->getLLType();
|
||||
|
||||
// importedModules[]
|
||||
std::vector<LLConstant*> importInits;
|
||||
|
||||
Reference in New Issue
Block a user