mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Some minor changes to handling of variables referenced from nested functions in D2 .
Added generation of new 'void*[4] reserved;' !ModuleInfo member .
This commit is contained in:
@@ -611,6 +611,8 @@ void Module::genmoduleinfo()
|
||||
//
|
||||
// void* xgetMembers;
|
||||
// void function() ictor;
|
||||
//
|
||||
// void*[4] reserved; // useless to us
|
||||
// }
|
||||
|
||||
// resolve ModuleInfo
|
||||
@@ -756,6 +758,15 @@ void Module::genmoduleinfo()
|
||||
c = getNullValue(fnptrTy);
|
||||
b.push(c);
|
||||
|
||||
#if DMDV2
|
||||
|
||||
// void*[4] reserved :/
|
||||
const LLType* AT = llvm::ArrayType::get(getVoidPtrType(), 4);
|
||||
c = getNullValue(AT);
|
||||
b.push(c);
|
||||
|
||||
#endif
|
||||
|
||||
/*Logger::println("MODULE INFO INITIALIZERS");
|
||||
for (size_t i=0; i<initVec.size(); ++i)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user