Convert obj->getSymbolName to sym->getName.

I doesn't depend on the object anymore.

llvm-svn: 240996
This commit is contained in:
Rafael Espindola
2015-06-29 21:24:55 +00:00
parent 59013c387e
commit 44c2871c09
5 changed files with 18 additions and 17 deletions

View File

@@ -359,7 +359,7 @@ static std::error_code getRelocationValueString(const ELFObjectFile<ELFT> *Obj,
return EC;
Target = *SecName;
} else {
ErrorOr<StringRef> SymName = EF.getSymbolName(StrTab, symb);
ErrorOr<StringRef> SymName = symb->getName(StrTab);
if (!SymName)
return SymName.getError();
Target = *SymName;