mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 17:29:19 +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();
|
TargetName = SecName.get();
|
||||||
} else if (Sym.first) {
|
} else if (Sym.first) {
|
||||||
const Elf_Shdr *SymTable = Sym.first;
|
const Elf_Shdr *SymTable = Sym.first;
|
||||||
ErrorOr<const Elf_Shdr *> StrTableSec = Obj->getSection(SymTable->sh_link);
|
ErrorOr<StringRef> StrTableOrErr = Obj->getStringTableForSymtab(*SymTable);
|
||||||
error(StrTableSec.getError());
|
|
||||||
ErrorOr<StringRef> StrTableOrErr = Obj->getStringTable(*StrTableSec);
|
|
||||||
error(StrTableOrErr.getError());
|
error(StrTableOrErr.getError());
|
||||||
TargetName = errorOrDefault(Sym.second->getName(*StrTableOrErr));
|
TargetName = errorOrDefault(Sym.second->getName(*StrTableOrErr));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user