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:
Tomas Lindquist Olsen
2009-06-03 03:04:47 +02:00
parent f6997cb604
commit 092381577f
3 changed files with 33 additions and 14 deletions

View File

@@ -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)
{