18 using namespace object;
25 std::pair<unsigned char, unsigned char> Ident =
27 std::size_t MaxAlignment =
34 std::unique_ptr<ObjectFile> R;
62 unsigned PlatformFlags;
Represents either an error or a value T.
virtual uint16_t getEMachine() const =0
SubtargetFeatures getFeatures() const override
This class is the base class for all object file types.
const char * getBufferStart() const
static ErrorOr< std::unique_ptr< ObjectFile > > createELFObjectFile(MemoryBufferRef Object)
void AddFeature(StringRef String, bool Enable=true)
Adding Features.
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...
virtual std::error_code getPlatformFlags(unsigned &Result) const
Returns platform-specific object flags, if any.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
StringRef getBuffer() const
SubtargetFeatures - Manages the enabling and disabling of subtarget specific features.
ELFObjectFileBase(unsigned int Type, MemoryBufferRef Source)
const FeatureBitset Features