mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
Use helper function. NFC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a7616cd14c
commit
52f969b029
@ -343,10 +343,7 @@ ErrorOr<ELFYAML::Group *> ELFDumper<ELFT>::dumpGroup(const Elf_Shdr *Shdr) {
|
|||||||
return EC;
|
return EC;
|
||||||
const Elf_Shdr *Symtab = *SymtabOrErr;
|
const Elf_Shdr *Symtab = *SymtabOrErr;
|
||||||
const Elf_Sym *symbol = Obj.getSymbol(Symtab, Shdr->sh_info);
|
const Elf_Sym *symbol = Obj.getSymbol(Symtab, Shdr->sh_info);
|
||||||
ErrorOr<const Elf_Shdr *> StrTabSec = Obj.getSection(Symtab->sh_link);
|
ErrorOr<StringRef> StrTabOrErr = Obj.getStringTableForSymtab(*Symtab);
|
||||||
if (std::error_code EC = StrTabSec.getError())
|
|
||||||
return EC;
|
|
||||||
ErrorOr<StringRef> StrTabOrErr = Obj.getStringTable(*StrTabSec);
|
|
||||||
if (std::error_code EC = StrTabOrErr.getError())
|
if (std::error_code EC = StrTabOrErr.getError())
|
||||||
return EC;
|
return EC;
|
||||||
StringRef StrTab = *StrTabOrErr;
|
StringRef StrTab = *StrTabOrErr;
|
||||||
|
Loading…
Reference in New Issue
Block a user