17 #ifndef LLVM_OBJECT_WASM_H
18 #define LLVM_OBJECT_WASM_H
84 unsigned getArch()
const override;
89 const uint8_t *getPtr(
size_t Offset)
const;
94 std::vector<wasm::WasmSection> Sections;
uint64_t getRelocationType(DataRefImpl Rel) const override
std::error_code getSectionName(DataRefImpl Sec, StringRef &Res) const override
unsigned getArch() const override
section_iterator section_end() const override
uint64_t getSectionAddress(DataRefImpl Sec) const override
This class is the base class for all object file types.
bool isSectionCompressed(DataRefImpl Sec) const override
void moveSymbolNext(DataRefImpl &Symb) const override
std::error_code getSectionContents(DataRefImpl Sec, StringRef &Res) const override
relocation_iterator section_rel_end(DataRefImpl Sec) const override
bool isSectionVirtual(DataRefImpl Sec) const override
uint8_t getBytesInAddress() const override
The number of bytes used to represent an address in this object file format.
Tagged union holding either a T or a Error.
relocation_iterator section_rel_begin(DataRefImpl Sec) const override
StringRef getFileFormatName() const override
static bool classof(const Binary *v)
bool isSectionText(DataRefImpl Sec) const override
basic_symbol_iterator symbol_begin() const override
symbol_iterator getRelocationSymbol(DataRefImpl Rel) const override
Expected< uint64_t > getSymbolAddress(DataRefImpl Symb) const override
void moveRelocationNext(DataRefImpl &Rel) const override
uint64_t getSymbolValueImpl(DataRefImpl Symb) const override
uint64_t getSectionAlignment(DataRefImpl Sec) const override
WasmObjectFile(MemoryBufferRef Object, Error &Err)
uint32_t getSymbolAlignment(DataRefImpl Symb) const override
void moveSectionNext(DataRefImpl &Sec) const override
Expected< SymbolRef::Type > getSymbolType(DataRefImpl Symb) const override
Expected< section_iterator > getSymbolSection(DataRefImpl Symb) const override
const wasm::WasmSection * getWasmSection(const SectionRef &Section) const
uint64_t getCommonSymbolSizeImpl(DataRefImpl Symb) const override
SubtargetFeatures getFeatures() const override
Expected< StringRef > getSymbolName(DataRefImpl Symb) const override
uint64_t getSectionSize(DataRefImpl Sec) const override
basic_symbol_iterator symbol_end() const override
const wasm::WasmObjectHeader & getHeader() const
section_iterator section_begin() const override
std::error_code printSymbolName(raw_ostream &OS, DataRefImpl Symb) const override
SubtargetFeatures - Manages the enabling and disabling of subtarget specific features.
bool isSectionData(DataRefImpl Sec) const override
section_iterator getRelocatedSection(DataRefImpl Sec) const override
void getRelocationTypeName(DataRefImpl Rel, SmallVectorImpl< char > &Result) const override
bool isRelocatableObject() const override
True if this is a relocatable object (.o/.obj).
bool isSectionBitcode(DataRefImpl Sec) const override
uint32_t getSymbolFlags(DataRefImpl Symb) const override
Lightweight error class with error context and mandatory checking.
This class implements an extremely fast bulk output stream that can only output to a stream...
StringRef - Represent a constant reference to a string, i.e.
bool isSectionBSS(DataRefImpl Sec) const override
This is a value type class that represents a single section in the list of sections in the object fil...
uint64_t getRelocationOffset(DataRefImpl Rel) const override