31 #include <system_error>
35 using namespace object;
42 std::pair<unsigned char, unsigned char> Ident =
44 std::size_t MaxAlignment =
51 std::unique_ptr<ObjectFile> R;
77 unsigned PlatformFlags;
bool hasAttribute(unsigned Tag) const
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
SubtargetFeatures getARMFeatures() const
void setARMSubArch(Triple &TheTriple) const override
void AddFeature(StringRef String, bool Enable=true)
Adds Features.
SubtargetFeatures getMIPSFeatures() const
std::pair< unsigned char, unsigned char > getElfArchType(StringRef Object)
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
SubArchType getSubArch() const
getSubArch - get the parsed subarchitecture type for this triple.
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...
void setArchName(StringRef Str)
setArchName - Set the architecture (first) component of the triple by name.
virtual std::error_code getPlatformFlags(unsigned &Result) const
Returns platform-specific object flags, if any.
ELFObjectFileBase(unsigned int Type, MemoryBufferRef Source)
Triple - Helper class for working with autoconf configuration names.
StringRef getBuffer() const
Manages the enabling and disabling of subtarget specific features.
virtual std::error_code getBuildAttributes(ARMAttributeParser &Attributes) const
static ErrorOr< std::unique_ptr< ObjectFile > > createELFObjectFile(MemoryBufferRef Object)
llvm_unreachable("Unknown RegBank!")
bool isLittleEndian() const
unsigned getAttributeValue(unsigned Tag) const
const FeatureBitset Features