[llvm] r240807 - Delete dead code. NFC.
Rafael Espindola
rafael.espindola at gmail.com
Fri Jun 26 11:32:54 PDT 2015
Author: rafael
Date: Fri Jun 26 13:32:53 2015
New Revision: 240807
URL: http://llvm.org/viewvc/llvm-project?rev=240807&view=rev
Log:
Delete dead code. NFC.
Modified:
llvm/trunk/include/llvm/Object/ELF.h
Modified: llvm/trunk/include/llvm/Object/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Object/ELF.h?rev=240807&r1=240806&r2=240807&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Fri Jun 26 13:32:53 2015
@@ -304,7 +304,6 @@ public:
const T *getEntry(uint32_t Section, uint32_t Entry) const;
template <typename T>
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<StringRef> getSymbolVersion(const Elf_Shdr *section,
@@ -935,12 +934,6 @@ ELFFile<ELFT>::getSection(uint32_t index
}
template <class ELFT>
-const char *ELFFile<ELFT>::getString(uint32_t section,
- ELF::Elf32_Word offset) const {
- return getString(getSection(section), offset);
-}
-
-template <class ELFT>
const char *ELFFile<ELFT>::getString(const Elf_Shdr *section,
ELF::Elf32_Word offset) const {
assert(section && section->sh_type == ELF::SHT_STRTAB && "Invalid section!");
More information about the llvm-commits
mailing list