From: Rafael Espindola Date: Fri, 26 Jun 2015 18:32:53 +0000 (+0000) Subject: Delete dead code. NFC. X-Git-Tag: llvmorg-3.7.0-rc1~1387 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7d47dc48e6d4492d9e31500964e2834602c9f33;p=platform%2Fupstream%2Fllvm.git Delete dead code. NFC. llvm-svn: 240807 --- diff --git a/llvm/include/llvm/Object/ELF.h b/llvm/include/llvm/Object/ELF.h index ae0e737..a9bee0a 100644 --- a/llvm/include/llvm/Object/ELF.h +++ b/llvm/include/llvm/Object/ELF.h @@ -304,7 +304,6 @@ public: const T *getEntry(uint32_t Section, uint32_t Entry) const; template const T *getEntry(const Elf_Shdr *Section, uint32_t Entry) const; - const char *getString(uint32_t section, uint32_t offset) const; const char *getString(const Elf_Shdr *section, uint32_t offset) const; const char *getDynamicString(uintX_t Offset) const; ErrorOr getSymbolVersion(const Elf_Shdr *section, @@ -935,12 +934,6 @@ ELFFile::getSection(uint32_t index) const { } template -const char *ELFFile::getString(uint32_t section, - ELF::Elf32_Word offset) const { - return getString(getSection(section), offset); -} - -template const char *ELFFile::getString(const Elf_Shdr *section, ELF::Elf32_Word offset) const { assert(section && section->sh_type == ELF::SHT_STRTAB && "Invalid section!");