[llvm] r285935 - Delete dead code.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 3 09:58:28 PDT 2016
Author: rafael
Date: Thu Nov 3 11:58:27 2016
New Revision: 285935
URL: http://llvm.org/viewvc/llvm-project?rev=285935&view=rev
Log:
Delete dead code.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=285935&r1=285934&r2=285935&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Thu Nov 3 11:58:27 2016
@@ -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,
@@ -197,16 +195,6 @@ getExtendedSymbolTableIndex(const typena
}
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,
ArrayRef<Elf_Word> ShndxTable) const {
More information about the llvm-commits
mailing list