[svn r345] Fixed the new moduleinfo stuff to have consistent symbol names with the D style.

This commit is contained in:
Tomas Lindquist Olsen
2008-07-10 00:13:09 +02:00
parent 2dfb2fcf19
commit 9c28c0263a

View File

@@ -306,7 +306,8 @@ static LLFunction* build_module_reference_and_ctor(LLConstant* moduleinfo)
const LLFunctionType* fty = LLFunctionType::get(LLType::VoidTy, std::vector<const LLType*>(), false);
// build ctor name
std::string fname = gIR->dmodule->mangle();
std::string fname = "_D";
fname += gIR->dmodule->mangle();
fname += "16__moduleinfoCtorZ";
// build a function that registers the moduleinfo in the global moduleinfo linked list
@@ -320,7 +321,8 @@ static LLFunction* build_module_reference_and_ctor(LLConstant* moduleinfo)
LLConstant* thismrefinit = LLConstantStruct::get(modulerefTy, mrefvalues);
// create the ModuleReference node for this module
std::string thismrefname = gIR->dmodule->mangle();
std::string thismrefname = "_D";
thismrefname += gIR->dmodule->mangle();
thismrefname += "11__moduleRefZ";
LLGlobalVariable* thismref = new LLGlobalVariable(modulerefTy, false, LLGlobalValue::InternalLinkage, thismrefinit, thismrefname, gIR->module);