Rename DtoMangled... to getIRMangled...

This commit is contained in:
Martin 2017-10-07 14:06:05 +02:00
parent 192649326d
commit c251170912
12 changed files with 72 additions and 72 deletions

View file

@ -834,7 +834,7 @@ void DtoResolveVariable(VarDeclaration *vd) {
if (gIR->dmodule) {
vd->ir->setInitialized();
}
const auto llMangle = DtoMangledName(vd);
const auto irMangle = getIRMangledName(vd);
// Since the type of a global must exactly match the type of its
// initializer, we cannot know the type until after we have emitted the
@ -855,7 +855,7 @@ void DtoResolveVariable(VarDeclaration *vd) {
llvm::GlobalVariable *gvar =
getOrCreateGlobal(vd->loc, gIR->module, DtoMemType(vd->type), isLLConst,
linkage, nullptr, llMangle, vd->isThreadlocal());
linkage, nullptr, irMangle, vd->isThreadlocal());
getIrGlobal(vd)->value = gvar;
// Set the alignment (it is important not to use type->alignsize because