mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-15 08:19:51 +00:00
Canonicalize the spelling of RefDie (NFC)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308755 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
90daee70cd
commit
80ce282123
@ -2235,9 +2235,9 @@ void DwarfLinker::keepDIEAndDependencies(RelocationManager &RelocMgr,
|
||||
|
||||
Val.extractValue(Data, &Offset, &Unit);
|
||||
CompileUnit *ReferencedCU;
|
||||
if (auto RefDIE =
|
||||
if (auto RefDie =
|
||||
resolveDIEReference(*this, Units, Val, Unit, Die, ReferencedCU)) {
|
||||
uint32_t RefIdx = ReferencedCU->getOrigUnit().getDIEIndex(RefDIE);
|
||||
uint32_t RefIdx = ReferencedCU->getOrigUnit().getDIEIndex(RefDie);
|
||||
CompileUnit::DIEInfo &Info = ReferencedCU->getInfo(RefIdx);
|
||||
bool IsModuleRef = Info.Ctxt && Info.Ctxt->getCanonicalDIEOffset() &&
|
||||
Info.Ctxt->isDefinedInClangModule();
|
||||
@ -2261,7 +2261,7 @@ void DwarfLinker::keepDIEAndDependencies(RelocationManager &RelocMgr,
|
||||
Info.Prune = false;
|
||||
|
||||
unsigned ODRFlag = UseODR ? TF_ODR : 0;
|
||||
lookForDIEsToKeep(RelocMgr, RefDIE, DMO, *ReferencedCU,
|
||||
lookForDIEsToKeep(RelocMgr, RefDie, DMO, *ReferencedCU,
|
||||
TF_Keep | TF_DependencyWalk | ODRFlag);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user