mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 23:50:43 +03:00
Rename DtoMangled... to getIRMangled...
This commit is contained in:
parent
192649326d
commit
c251170912
12 changed files with 72 additions and 72 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue