Delete dead code.

llvm-svn: 285935
This commit is contained in:
Rafael Espindola 2016-11-03 16:58:27 +00:00
parent 6af3f14efb
commit 20c5fa8a31
1 changed files with 0 additions and 12 deletions

View File

@ -148,8 +148,6 @@ public:
ErrorOr<StringRef> getSectionStringTable(Elf_Shdr_Range Sections) const;
const Elf_Ehdr *getHeader() const { return Header; }
ErrorOr<uint32_t> getSectionIndex(const Elf_Sym *Sym, const Elf_Shdr *SymTab,
ArrayRef<Elf_Word> ShndxTable) const;
ErrorOr<uint32_t> getSectionIndex(const Elf_Sym *Sym, Elf_Sym_Range Syms,
ArrayRef<Elf_Word> ShndxTable) const;
ErrorOr<const Elf_Shdr *> getSection(const Elf_Sym *Sym,
@ -196,16 +194,6 @@ getExtendedSymbolTableIndex(const typename ELFT::Sym *Sym,
return ShndxTable[Index];
}
template <class ELFT>
ErrorOr<uint32_t>
ELFFile<ELFT>::getSectionIndex(const Elf_Sym *Sym, const Elf_Shdr *SymTab,
ArrayRef<Elf_Word> ShndxTable) const {
auto SymsOrErr = symbols(SymTab);
if (std::error_code EC = SymsOrErr.getError())
return EC;
return getSectionIndex(Sym, *SymsOrErr, ShndxTable);
}
template <class ELFT>
ErrorOr<uint32_t>
ELFFile<ELFT>::getSectionIndex(const Elf_Sym *Sym, Elf_Sym_Range Syms,