]> granicus.if.org Git - llvm/commitdiff
Delete dead code.
authorRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Nov 2016 16:58:27 +0000 (16:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Thu, 3 Nov 2016 16:58:27 +0000 (16:58 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@285935 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELF.h

index 8391724ad941e229f14c5f5d7ab0ca77e5707509..07f16112938dc47df6ae0304de18e2cc3d996ad3 100644 (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,