aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2012-04-13 05:58:19 +0000
committerCraig Topper <craig.topper@gmail.com>2012-04-13 05:58:19 +0000
commitbdc3adc6c10378e16035467aae866eead51f1d54 (patch)
tree318aa17a14759514c116b1d989d2295521395851 /include
parent6c189ecbe6d11583dc54289a2e8d8f35add01c82 (diff)
downloadexternal_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.h9
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 {