forked from OSchip/llvm-project
parent
e313f8f8ff
commit
1e056ebe3c
|
@ -282,7 +282,7 @@ ObjectFile<ELFT>::getSection(const Elf_Sym &Sym) const {
|
||||||
|
|
||||||
template <class ELFT>
|
template <class ELFT>
|
||||||
SymbolBody *ObjectFile<ELFT>::createSymbolBody(StringRef StringTable,
|
SymbolBody *ObjectFile<ELFT>::createSymbolBody(StringRef StringTable,
|
||||||
const Elf_Sym *Sym) {
|
const Elf_Sym *Sym) {
|
||||||
ErrorOr<StringRef> NameOrErr = Sym->getName(StringTable);
|
ErrorOr<StringRef> NameOrErr = Sym->getName(StringTable);
|
||||||
error(NameOrErr);
|
error(NameOrErr);
|
||||||
StringRef Name = *NameOrErr;
|
StringRef Name = *NameOrErr;
|
||||||
|
|
Loading…
Reference in New Issue