# HG changeset patch # User lindquist # Date 1215641589 -7200 # Node ID c542d12017e50b284800b220a543e472587fcfbe # Parent 0d52412d5b1a7928f0ea8da67855c4708094ae34 [svn r345] Fixed the new moduleinfo stuff to have consistent symbol names with the D style. diff -r 0d52412d5b1a -r c542d12017e5 gen/toobj.cpp --- a/gen/toobj.cpp Wed Jul 09 23:43:51 2008 +0200 +++ b/gen/toobj.cpp Thu Jul 10 00:13:09 2008 +0200 @@ -306,7 +306,8 @@ const LLFunctionType* fty = LLFunctionType::get(LLType::VoidTy, std::vector(), 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 @@ 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);