OSDN Git Service

Remove getDynamicSymbolName.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 21 Jul 2015 18:20:17 +0000 (18:20 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 21 Jul 2015 18:20:17 +0000 (18:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242821 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Object/ELF.h

index 6ebb92f..524d425 100644 (file)
@@ -388,8 +388,6 @@ public:
   ErrorOr<const Elf_Shdr *> getSection(uint32_t Index) const;
   const Elf_Sym *getSymbol(uint32_t index) const;
 
-  ErrorOr<StringRef> getDynamicSymbolName(const Elf_Sym *Symb) const;
-
   ErrorOr<StringRef> getSectionName(const Elf_Shdr *Section) const;
   ErrorOr<ArrayRef<uint8_t> > getSectionContents(const Elf_Shdr *Sec) const;
   StringRef getLoadName() const;
@@ -898,12 +896,6 @@ const char *ELFFile<ELFT>::getDynamicString(uintX_t Offset) const {
 
 template <class ELFT>
 ErrorOr<StringRef>
-ELFFile<ELFT>::getDynamicSymbolName(const Elf_Sym *Symb) const {
-  return StringRef(getDynamicString(Symb->st_name));
-}
-
-template <class ELFT>
-ErrorOr<StringRef>
 ELFFile<ELFT>::getSectionName(const Elf_Shdr *Section) const {
   uint32_t Offset = Section->sh_name;
   if (Offset >= DotShstrtab.size())