18 using namespace object;
25 std::pair<unsigned char, unsigned char> Ident =
27 std::size_t MaxAlignment =
34 std::unique_ptr<ObjectFile> R;
Represents either an error or a value T.
This class is the base class for all object file types.
const char * getBufferStart() const
static ErrorOr< std::unique_ptr< ObjectFile > > createELFObjectFile(MemoryBufferRef Object)
std::pair< unsigned char, unsigned char > getElfArchType(StringRef Object)
std::size_t 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...
The instances of the Type class are immutable: once they are created, they are never changed...
StringRef getBuffer() const
ELFObjectFileBase(unsigned int Type, MemoryBufferRef Source)