[lld] r285236 - Fix build breakage.
Rui Ueyama via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 26 13:27:38 PDT 2016
Author: ruiu
Date: Wed Oct 26 15:27:38 2016
New Revision: 285236
URL: http://llvm.org/viewvc/llvm-project?rev=285236&view=rev
Log:
Fix build breakage.
Modified:
lld/trunk/ELF/Relocations.cpp
Modified: lld/trunk/ELF/Relocations.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Relocations.cpp?rev=285236&r1=285235&r2=285236&view=diff
==============================================================================
--- lld/trunk/ELF/Relocations.cpp (original)
+++ lld/trunk/ELF/Relocations.cpp Wed Oct 26 15:27:38 2016
@@ -551,9 +551,9 @@ static std::string getLocation(SymbolBod
SrcFile = Sym.File ? getFilename(Sym.File) : getFilename(File);
// Find a symbol at a given location.
- DefinedRegular<ELFT> *Sym = getSymbolAt(&S, Offset);
- if (Sym && Sym->Type == STT_FUNC) {
- StringRef Func = getSymbolName(*File, *Sym);
+ DefinedRegular<ELFT> *Encl = getSymbolAt(&S, Offset);
+ if (Encl && Encl->Type == STT_FUNC) {
+ StringRef Func = getSymbolName(*File, *Encl);
return SrcFile + " (function " + maybeDemangle(Func) + ")";
}
More information about the llvm-commits
mailing list