From: Adrian Prantl Date: Fri, 21 Jul 2017 16:51:09 +0000 (+0000) Subject: Canonicalize the spelling of RefDie (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=80ce282123339eaa9f603ec451dfd7d075afb07a;p=llvm Canonicalize the spelling of RefDie (NFC) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308755 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/dsymutil/DwarfLinker.cpp b/tools/dsymutil/DwarfLinker.cpp index d82149e50b4..6ccf68aaa8d 100644 --- a/tools/dsymutil/DwarfLinker.cpp +++ b/tools/dsymutil/DwarfLinker.cpp @@ -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); } }