From 746609067cd66b2f10acd592acd0b2fea3669567 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Tue, 21 Jul 2015 16:50:57 +0000 Subject: [PATCH] Remove dead code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242804 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Object/ELF.h | 9 --------- 1 file changed, 9 deletions(-) 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 {