[lld] r241346 - Use getDynamicSymbolName/getStaticSymbolName instead of a constant argument.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jul 3 05:50:55 PDT 2015
Author: rafael
Date: Fri Jul 3 07:50:54 2015
New Revision: 241346
URL: http://llvm.org/viewvc/llvm-project?rev=241346&view=rev
Log:
Use getDynamicSymbolName/getStaticSymbolName instead of a constant argument.
Modified:
lld/trunk/lib/ReaderWriter/ELF/DynamicFile.cpp
lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/DynamicFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/DynamicFile.cpp?rev=241346&r1=241345&r2=241346&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/DynamicFile.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/DynamicFile.cpp Fri Jul 3 07:50:54 2015
@@ -70,7 +70,7 @@ template <class ELFT> std::error_code Dy
// it exists.
for (auto i = obj.dynamic_symbol_begin(), e = obj.dynamic_symbol_end();
i != e; ++i) {
- auto name = obj.getSymbolName(i, true);
+ auto name = obj.getDynamicSymbolName(i);
if ((ec = name.getError()))
return ec;
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp?rev=241346&r1=241345&r2=241346&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp Fri Jul 3 07:50:54 2015
@@ -219,7 +219,7 @@ std::error_code ELFFile<ELFT>::createSym
if (std::error_code ec = section.getError())
return ec;
- auto symbolName = _objFile->getSymbolName(SymI, false);
+ auto symbolName = _objFile->getStaticSymbolName(SymI);
if (std::error_code ec = symbolName.getError())
return ec;
@@ -305,7 +305,7 @@ template <class ELFT> std::error_code EL
auto symbol = *si;
StringRef symbolName = "";
if (symbol->getType() != llvm::ELF::STT_SECTION) {
- auto symName = _objFile->getSymbolName(symbol, false);
+ auto symName = _objFile->getStaticSymbolName(symbol);
if (std::error_code ec = symName.getError())
return ec;
symbolName = *symName;
More information about the llvm-commits
mailing list