Mercurial > projects > ldc
diff gen/toobj.cpp @ 1464:93644700a0b3
Some minor changes to handling of variables referenced from nested functions in D2 .
Added generation of new 'void*[4] reserved;' !ModuleInfo member .
author | Tomas Lindquist Olsen <tomas.l.olsen gmail com> |
---|---|
date | Wed, 03 Jun 2009 03:04:47 +0200 |
parents | 7b218ec1044f |
children | 630fc54f7c1e |
line wrap: on
line diff
--- a/gen/toobj.cpp Wed Jun 03 02:28:48 2009 +0200 +++ b/gen/toobj.cpp Wed Jun 03 03:04:47 2009 +0200 @@ -611,6 +611,8 @@ // // void* xgetMembers; // void function() ictor; +// +// void*[4] reserved; // useless to us // } // resolve ModuleInfo @@ -756,6 +758,15 @@ 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) {