[lld] r240997 - Update for llvm api change.
Rafael Espindola
rafael.espindola at gmail.com
Mon Jun 29 14:26:07 PDT 2015
Author: rafael
Date: Mon Jun 29 16:26:07 2015
New Revision: 240997
URL: http://llvm.org/viewvc/llvm-project?rev=240997&view=rev
Log:
Update for llvm api change.
Modified:
lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp
Modified: lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp?rev=240997&r1=240996&r2=240997&view=diff
==============================================================================
--- lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp (original)
+++ lld/trunk/lib/ReaderWriter/ELF/ELFFile.cpp Mon Jun 29 16:26:07 2015
@@ -491,7 +491,7 @@ std::error_code ELFFile<ELFT>::handleSec
if (std::error_code ec = strtab_or_err.getError())
return ec;
StringRef strtab = *strtab_or_err;
- ErrorOr<StringRef> symbolName = _objFile->getSymbolName(strtab, symbol);
+ ErrorOr<StringRef> symbolName = symbol->getName(strtab);
if (std::error_code ec = symbolName.getError())
return ec;
More information about the llvm-commits
mailing list