diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index b8367e08961..4ba5bc10ffe 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -390,7 +390,6 @@ public: ErrorOr getStaticSymbolName(const Elf_Sym *Symb) const; ErrorOr getDynamicSymbolName(const Elf_Sym *Symb) const; - ErrorOr getSymbolName(const Elf_Sym *Symb, bool IsDynamic) const; ErrorOr getSectionName(const Elf_Shdr *Section) const; ErrorOr > getSectionContents(const Elf_Shdr *Sec) const; @@ -910,14 +909,6 @@ ELFFile::getDynamicSymbolName(const Elf_Sym *Symb) const { return StringRef(getDynamicString(Symb->st_name)); } -template -ErrorOr ELFFile::getSymbolName(const Elf_Sym *Symb, - bool IsDynamic) const { - if (IsDynamic) - return getDynamicSymbolName(Symb); - return getStaticSymbolName(Symb); -} - template ErrorOr ELFFile::getSectionName(const Elf_Shdr *Section) const {