[llvm-commits] [llvm] r154657 - /llvm/trunk/include/llvm/Object/ELF.h
Craig Topper
craig.topper at gmail.com
Thu Apr 12 22:58:19 PDT 2012
Author: ctopper
Date: Fri Apr 13 00:58:19 2012
New Revision: 154657
URL: http://llvm.org/viewvc/llvm-project?rev=154657&view=rev
Log:
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.
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=154657&r1=154656&r2=154657&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Object/ELF.h (original)
+++ llvm/trunk/include/llvm/Object/ELF.h Fri Apr 13 00:58:19 2012
@@ -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 {
More information about the llvm-commits
mailing list