diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-04-13 05:58:19 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-04-13 05:58:19 +0000 |
commit | bdc3adc6c10378e16035467aae866eead51f1d54 (patch) | |
tree | 318aa17a14759514c116b1d989d2295521395851 /include | |
parent | 6c189ecbe6d11583dc54289a2e8d8f35add01c82 (diff) | |
download | external_llvm-bdc3adc6c10378e16035467aae866eead51f1d54.zip external_llvm-bdc3adc6c10378e16035467aae866eead51f1d54.tar.gz external_llvm-bdc3adc6c10378e16035467aae866eead51f1d54.tar.bz2 |
Remove getElfArchType from ELF.h. It's only used in ELFObjectFile.cpp and there's already a copy there. ELF.h was hiding the one there and causing an unused function warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@154657 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Object/ELF.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/llvm/Object/ELF.h b/include/llvm/Object/ELF.h index 455a67b..0828985 100644 --- a/include/llvm/Object/ELF.h +++ b/include/llvm/Object/ELF.h @@ -33,15 +33,6 @@ namespace llvm { namespace object { -// Subclasses of ELFObjectFile may need this for template instantiation -inline std::pair<unsigned char, unsigned char> -getElfArchType(MemoryBuffer *Object) { - if (Object->getBufferSize() < ELF::EI_NIDENT) - return std::make_pair((uint8_t)ELF::ELFCLASSNONE,(uint8_t)ELF::ELFDATANONE); - return std::make_pair( (uint8_t)Object->getBufferStart()[ELF::EI_CLASS] - , (uint8_t)Object->getBufferStart()[ELF::EI_DATA]); -} - // Templates to choose Elf_Addr and Elf_Off depending on is64Bits. template<support::endianness target_endianness> struct ELFDataTypeTypedefHelperCommon { |