summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2016-11-03 16:58:27 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2016-11-03 16:58:27 +0000
commit20c5fa8a313176e1602022de757848e9d3e73bb0 (patch)
tree4a64c7f1f63bd73add5015eac78d19ba360bff13
parent6af3f14efb0ad169eb5239ca1a9b7027925aadd2 (diff)
downloadbcm5719-llvm-20c5fa8a313176e1602022de757848e9d3e73bb0.tar.gz
bcm5719-llvm-20c5fa8a313176e1602022de757848e9d3e73bb0.zip
Delete dead code.
llvm-svn: 285935
-rw-r--r--llvm/include/llvm/Object/ELF.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/include/llvm/Object/ELF.h b/llvm/include/llvm/Object/ELF.h
index 8391724ad94..07f16112938 100644
--- a/llvm/include/llvm/Object/ELF.h
+++ b/llvm/include/llvm/Object/ELF.h
@@ -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,
@@ -198,16 +196,6 @@ getExtendedSymbolTableIndex(const typename ELFT::Sym *Sym,
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 {
uint32_t Index = Sym->st_shndx;
OpenPOWER on IntegriCloud