mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-27 09:03:15 +01:00
[svn r345] Fixed the new moduleinfo stuff to have consistent symbol names with the D style.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user