diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 6ebb92f7ee8..524d42540b7 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -388,8 +388,6 @@ public: ErrorOr getSection(uint32_t Index) const; const Elf_Sym *getSymbol(uint32_t index) const; - ErrorOr getDynamicSymbolName(const Elf_Sym *Symb) const; - ErrorOr getSectionName(const Elf_Shdr *Section) const; ErrorOr > getSectionContents(const Elf_Shdr *Sec) const; StringRef getLoadName() const; @@ -896,12 +894,6 @@ const char *ELFFile::getDynamicString(uintX_t Offset) const { return (const char *)DynStrRegion.Addr + Offset; } -template -ErrorOr -ELFFile::getDynamicSymbolName(const Elf_Sym *Symb) const { - return StringRef(getDynamicString(Symb->st_name)); -} - template ErrorOr ELFFile::getSectionName(const Elf_Shdr *Section) const {