mirror of
https://github.com/RPCSX/llvm.git
synced 2025-04-06 18:21:51 +00:00
Use helper function. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242795 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fcadda639e
commit
9ea117379c
@ -755,9 +755,7 @@ void ELFDumper<ELFT>::printRelocation(const Elf_Shdr *Sec,
|
||||
TargetName = SecName.get();
|
||||
} else if (Sym.first) {
|
||||
const Elf_Shdr *SymTable = Sym.first;
|
||||
ErrorOr<const Elf_Shdr *> StrTableSec = Obj->getSection(SymTable->sh_link);
|
||||
error(StrTableSec.getError());
|
||||
ErrorOr<StringRef> StrTableOrErr = Obj->getStringTable(*StrTableSec);
|
||||
ErrorOr<StringRef> StrTableOrErr = Obj->getStringTableForSymtab(*SymTable);
|
||||
error(StrTableOrErr.getError());
|
||||
TargetName = errorOrDefault(Sym.second->getName(*StrTableOrErr));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user