18 using namespace object;
22 std::pair<unsigned char, unsigned char> Ident =
getElfArchType(Object);
25 std::size_t MaxAlignment =
29 #if !LLVM_IS_UNALIGNED_ACCESS_FAST
30 if (MaxAlignment >= 4)
34 if (MaxAlignment >= 2)
39 #if !LLVM_IS_UNALIGNED_ACCESS_FAST
40 if (MaxAlignment >= 4)
44 if (MaxAlignment >= 2)
49 #if !LLVM_IS_UNALIGNED_ACCESS_FAST
50 if (MaxAlignment >= 8)
54 if (MaxAlignment >= 2)
59 #if !LLVM_IS_UNALIGNED_ACCESS_FAST
60 if (MaxAlignment >= 8)
64 if (MaxAlignment >= 2)
static ObjectFile * createELFObjectFile(MemoryBuffer *Object)
const char * getBufferStart() const
LLVM_ATTRIBUTE_NORETURN void report_fatal_error(const char *reason, bool gen_crash_diag=true)
#define llvm_unreachable(msg)
enable_if_c< std::numeric_limits< T >::is_integer &&!std::numeric_limits< T >::is_signed, std::size_t >::type countTrailingZeros(T Val, ZeroBehavior ZB=ZB_Width)
Count number of 0's from the least significant bit to the most stopping at the first 1...
std::pair< unsigned char, unsigned char > getElfArchType(MemoryBuffer *Object)