forked from OSchip/llvm-project
Use getDynamicSymbolName/getStaticSymbolName instead of a constant argument.
llvm-svn: 241346
This commit is contained in:
parent
d48e54c5ea
commit
ec57b8b9f8
|
@ -70,7 +70,7 @@ template <class ELFT> std::error_code DynamicFile<ELFT>::doParse() {
|
|||
// 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;
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ std::error_code ELFFile<ELFT>::createSymbolsFromAtomizableSections() {
|
|||
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 ELFFile<ELFT>::createAtoms() {
|
|||
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;
|
||||
|
|
Loading…
Reference in New Issue