class WasmObjectFile
Declaration
class WasmObjectFile : public ObjectFile { /* full declaration omitted */ };
Description
This class is the base class for all object file types. Concrete instances of this object are created by createObjectFile, which figures out which type to create.
Declared at: llvm/include/llvm/Object/Wasm.h:120
Inherits from: ObjectFile
Member Variables
- private wasm::WasmObjectHeader Header
- private std::vector<WasmSection> Sections
- private wasm::WasmDylinkInfo DylinkInfo
- private wasm::WasmProducerInfo ProducerInfo
- private std::vector<wasm::WasmFeatureEntry> TargetFeatures
- private std::vector<wasm::WasmSignature> Signatures
- private std::vector<wasm::WasmTable> Tables
- private std::vector<wasm::WasmLimits> Memories
- private std::vector<wasm::WasmGlobal> Globals
- private std::vector<wasm::WasmTag> Tags
- private std::vector<wasm::WasmImport> Imports
- private std::vector<wasm::WasmExport> Exports
- private std::vector<wasm::WasmElemSegment> ElemSegments
- private std::vector<WasmSegment> DataSegments
- private llvm::Optional<size_t> DataCount
- private std::vector<wasm::WasmFunction> Functions
- private std::vector<WasmSymbol> Symbols
- private std::vector<wasm::WasmDebugName> DebugNames
- private uint32_t StartFunction = -1
- private bool HasLinkingSection = false
- private bool HasDylinkSection = false
- private bool HasMemory64 = false
- private wasm::WasmLinkingData LinkingData
- private uint32_t NumImportedGlobals = 0
- private uint32_t NumImportedTables = 0
- private uint32_t NumImportedFunctions = 0
- private uint32_t NumImportedTags = 0
- private uint32_t CodeSection = 0
- private uint32_t DataSection = 0
- private uint32_t TagSection = 0
- private uint32_t GlobalSection = 0
- private uint32_t TableSection = 0
Inherited from Binary:
Method Overview
- public WasmObjectFile(llvm::MemoryBufferRef Object, llvm::Error & Err)
- public static bool classof(const llvm::object::Binary * v)
- public ArrayRef<llvm::object::WasmSegment> dataSegments() const
- public ArrayRef<wasm::WasmDebugName> debugNames() const
- public const wasm::WasmDylinkInfo & dylinkInfo() const
- public ArrayRef<wasm::WasmElemSegment> elements() const
- public ArrayRef<wasm::WasmExport> exports() const
- public ArrayRef<wasm::WasmFunction> functions() const
- public Triple::ArchType getArch() const
- public uint8_t getBytesInAddress() const
- public uint64_t getCommonSymbolSizeImpl(llvm::object::DataRefImpl Symb) const
- private wasm::WasmFunction & getDefinedFunction(uint32_t Index)
- private const wasm::WasmFunction & getDefinedFunction(uint32_t Index) const
- private wasm::WasmGlobal & getDefinedGlobal(uint32_t Index)
- private wasm::WasmTag & getDefinedTag(uint32_t Index)
- public llvm::SubtargetFeatures getFeatures() const
- public llvm::StringRef getFileFormatName() const
- public const wasm::WasmObjectHeader & getHeader() const
- public uint32_t getNumImportedFunctions() const
- public uint32_t getNumImportedGlobals() const
- public uint32_t getNumImportedTables() const
- public uint32_t getNumImportedTags() const
- public uint32_t getNumSections() const
- public uint32_t getNumberOfSymbols() const
- public const wasm::WasmProducerInfo & getProducerInfo() const
- public uint64_t getRelocationOffset(llvm::object::DataRefImpl Rel) const
- public llvm::object::symbol_iterator getRelocationSymbol(llvm::object::DataRefImpl Rel) const
- public uint64_t getRelocationType(llvm::object::DataRefImpl Rel) const
- public void getRelocationTypeName(llvm::object::DataRefImpl Rel, SmallVectorImpl<char> & Result) const
- public uint64_t getSectionAddress(llvm::object::DataRefImpl Sec) const
- public uint64_t getSectionAlignment(llvm::object::DataRefImpl Sec) const
- public Expected<ArrayRef<uint8_t>> getSectionContents(llvm::object::DataRefImpl Sec) const
- public uint64_t getSectionIndex(llvm::object::DataRefImpl Sec) const
- public Expected<llvm::StringRef> getSectionName(llvm::object::DataRefImpl Sec) const
- public uint64_t getSectionSize(llvm::object::DataRefImpl Sec) const
- public Expected<uint64_t> getSymbolAddress(llvm::object::DataRefImpl Symb) const
- public uint32_t getSymbolAlignment(llvm::object::DataRefImpl Symb) const
- public Expected<uint32_t> getSymbolFlags(llvm::object::DataRefImpl Symb) const
- public Expected<llvm::StringRef> getSymbolName(llvm::object::DataRefImpl Symb) const
- public Expected<llvm::object::section_iterator> getSymbolSection(llvm::object::DataRefImpl Symb) const
- public uint32_t getSymbolSectionId(llvm::object::SymbolRef Sym) const
- private uint32_t getSymbolSectionIdImpl(const llvm::object::WasmSymbol & Symb) const
- public Expected<SymbolRef::Type> getSymbolType(llvm::object::DataRefImpl Symb) const
- public uint64_t getSymbolValueImpl(llvm::object::DataRefImpl Symb) const
- public ArrayRef<wasm::WasmFeatureEntry> getTargetFeatures() const
- private const wasm::WasmRelocation & getWasmRelocation(llvm::object::DataRefImpl Ref) const
- public const wasm::WasmRelocation & getWasmRelocation(const llvm::object::RelocationRef & Ref) const
- public const llvm::object::WasmSection & getWasmSection(const llvm::object::SectionRef & Section) const
- private const llvm::object::WasmSection & getWasmSection(llvm::object::DataRefImpl Ref) const
- public const llvm::object::WasmSymbol & getWasmSymbol(const llvm::object::DataRefImpl & Symb) const
- public const llvm::object::WasmSymbol & getWasmSymbol(const llvm::object::SymbolRef & Symbol) const
- public uint64_t getWasmSymbolValue(const llvm::object::WasmSymbol & Sym) const
- public ArrayRef<wasm::WasmGlobal> globals() const
- public ArrayRef<wasm::WasmImport> imports() const
- private bool isDefinedFunctionIndex(uint32_t Index) const
- private bool isDefinedGlobalIndex(uint32_t Index) const
- private bool isDefinedTableNumber(uint32_t Index) const
- private bool isDefinedTagIndex(uint32_t Index) const
- public bool isRelocatableObject() const
- public bool isSectionBSS(llvm::object::DataRefImpl Sec) const
- public bool isSectionCompressed(llvm::object::DataRefImpl Sec) const
- public bool isSectionData(llvm::object::DataRefImpl Sec) const
- public bool isSectionText(llvm::object::DataRefImpl Sec) const
- public bool isSectionVirtual(llvm::object::DataRefImpl Sec) const
- public bool isSharedObject() const
- private bool isValidDataSymbol(uint32_t Index) const
- private bool isValidFunctionIndex(uint32_t Index) const
- private bool isValidFunctionSymbol(uint32_t Index) const
- private bool isValidGlobalIndex(uint32_t Index) const
- private bool isValidGlobalSymbol(uint32_t Index) const
- private bool isValidSectionSymbol(uint32_t Index) const
- private bool isValidTableNumber(uint32_t Index) const
- private bool isValidTableSymbol(uint32_t Index) const
- private bool isValidTagIndex(uint32_t Index) const
- private bool isValidTagSymbol(uint32_t Index) const
- public const wasm::WasmLinkingData & linkingData() const
- public ArrayRef<wasm::WasmLimits> memories() const
- public void moveRelocationNext(llvm::object::DataRefImpl & Rel) const
- public void moveSectionNext(llvm::object::DataRefImpl & Sec) const
- public void moveSymbolNext(llvm::object::DataRefImpl & Symb) const
- private llvm::Error parseCodeSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseCustomSection(llvm::object::WasmSection & Sec, llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseDataCountSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseDataSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseDylink0Section(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseDylinkSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseElemSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseExportSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseFunctionSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseGlobalSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseImportSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseLinkingSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseLinkingSectionComdat(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseLinkingSectionSymtab(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseMemorySection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseNameSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseProducersSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseRelocSection(llvm::StringRef Name, llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseSection(llvm::object::WasmSection & Sec)
- private llvm::Error parseStartSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseTableSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseTagSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseTargetFeaturesSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- private llvm::Error parseTypeSection(llvm::object::WasmObjectFile::ReadContext & Ctx)
- public llvm::object::section_iterator section_begin() const
- public llvm::object::section_iterator section_end() const
- public llvm::object::relocation_iterator section_rel_begin(llvm::object::DataRefImpl Sec) const
- public llvm::object::relocation_iterator section_rel_end(llvm::object::DataRefImpl Sec) const
- public uint32_t startFunction() const
- public llvm::object::basic_symbol_iterator symbol_begin() const
- public llvm::object::basic_symbol_iterator symbol_end() const
- public ArrayRef<llvm::object::WasmSymbol> syms() const
- public ArrayRef<wasm::WasmTable> tables() const
- public ArrayRef<wasm::WasmTag> tags() const
- public ArrayRef<wasm::WasmSignature> types() const
Inherited from ObjectFile:
- protected base
- public classof
- public createCOFFObjectFile
- public createELFObjectFile
- public createMachOObjectFile
- public createObjectFile
- public createObjectFile
- public createObjectFile
- public createWasmObjectFile
- public createXCOFFObjectFile
- public dynamic_relocation_sections
- public getArch
- public getBytesInAddress
- public getCommonSymbolSize
- protected getCommonSymbolSizeImpl
- public getFeatures
- public getFileFormatName
- protected getRelocatedSection
- protected getRelocationOffset
- protected getRelocationSymbol
- protected getRelocationType
- protected getRelocationTypeName
- protected getSectionAddress
- protected getSectionAlignment
- protected getSectionContents
- protected getSectionIndex
- protected getSectionName
- protected getSectionSize
- public getStartAddress
- protected getSymbolAddress
- protected getSymbolAlignment
- protected getSymbolName
- protected getSymbolSection
- protected getSymbolType
- protected getSymbolValue
- protected getSymbolValueImpl
- protected isBerkeleyData
- protected isBerkeleyText
- protected isDebugSection
- public isReflectionSectionStrippable
- public isRelocatableObject
- protected isSectionBSS
- protected isSectionBitcode
- protected isSectionCompressed
- protected isSectionData
- protected isSectionStripped
- protected isSectionText
- protected isSectionVirtual
- public makeTriple
- public mapDebugSectionName
- protected mapReflectionSectionNameToEnumValue
- protected moveRelocationNext
- protected moveSectionNext
- protected printSymbolName
- public section_begin
- public section_end
- protected section_rel_begin
- protected section_rel_end
- public sections
- public setARMSubArch
- public symbols
- public tryGetCPUName
Inherited from SymbolicFile:
- public classof
- public createSymbolicFile
- public createSymbolicFile
- public getSymbolFlags
- public isSymbolicFile
- public moveSymbolNext
- public printSymbolName
- public symbol_begin
- public symbol_end
- public symbols
Inherited from Binary:
- public checkOffset
- public getData
- protected getELFType
- public getFileName
- protected getMachOType
- public getMemoryBufferRef
- public getTripleObjectFormat
- public getType
- public initContent
- public isArchive
- public isCOFF
- public isCOFFImportFile
- public isELF
- public isIR
- public isLittleEndian
- public isMachO
- public isMachOUniversalBinary
- public isMinidump
- public isObject
- public isOffloadFile
- public isSymbolic
- public isTapiFile
- public isTapiUniversal
- public isWasm
- public isWinRes
- public isXCOFF
Methods
¶WasmObjectFile(llvm::MemoryBufferRef Object,
llvm::Error& Err)
WasmObjectFile(llvm::MemoryBufferRef Object,
llvm::Error& Err)
Declared at: llvm/include/llvm/Object/Wasm.h:123
Parameters
- llvm::MemoryBufferRef Object
- llvm::Error& Err
¶static bool classof(const llvm::object::Binary* v)
static bool classof(const llvm::object::Binary* v)
Declared at: llvm/include/llvm/Object/Wasm.h:131
Parameters
- const llvm::object::Binary* v
¶ArrayRef<llvm::object::WasmSegment> dataSegments()
const
ArrayRef<llvm::object::WasmSegment> dataSegments()
const
Declared at: llvm/include/llvm/Object/Wasm.h:149
¶ArrayRef<wasm::WasmDebugName> debugNames() const
ArrayRef<wasm::WasmDebugName> debugNames() const
Declared at: llvm/include/llvm/Object/Wasm.h:151
¶const wasm::WasmDylinkInfo& dylinkInfo() const
const wasm::WasmDylinkInfo& dylinkInfo() const
Declared at: llvm/include/llvm/Object/Wasm.h:133
¶ArrayRef<wasm::WasmElemSegment> elements() const
ArrayRef<wasm::WasmElemSegment> elements() const
Declared at: llvm/include/llvm/Object/Wasm.h:148
¶ArrayRef<wasm::WasmExport> exports() const
ArrayRef<wasm::WasmExport> exports() const
Declared at: llvm/include/llvm/Object/Wasm.h:144
¶ArrayRef<wasm::WasmFunction> functions() const
ArrayRef<wasm::WasmFunction> functions() const
Declared at: llvm/include/llvm/Object/Wasm.h:150
¶Triple::ArchType getArch() const
Triple::ArchType getArch() const
Declared at: llvm/include/llvm/Object/Wasm.h:205
¶uint8_t getBytesInAddress() const
uint8_t getBytesInAddress() const
Description
The number of bytes used to represent an address in this object file format.
Declared at: llvm/include/llvm/Object/Wasm.h:203
¶uint64_t getCommonSymbolSizeImpl(
llvm::object::DataRefImpl Symb) const
uint64_t getCommonSymbolSizeImpl(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:171
Parameters
¶wasm::WasmFunction& getDefinedFunction(
uint32_t Index)
wasm::WasmFunction& getDefinedFunction(
uint32_t Index)
Declared at: llvm/include/llvm/Object/Wasm.h:231
Parameters
- uint32_t Index
¶const wasm::WasmFunction& getDefinedFunction(
uint32_t Index) const
const wasm::WasmFunction& getDefinedFunction(
uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:232
Parameters
- uint32_t Index
¶wasm::WasmGlobal& getDefinedGlobal(uint32_t Index)
wasm::WasmGlobal& getDefinedGlobal(uint32_t Index)
Declared at: llvm/include/llvm/Object/Wasm.h:233
Parameters
- uint32_t Index
¶wasm::WasmTag& getDefinedTag(uint32_t Index)
wasm::WasmTag& getDefinedTag(uint32_t Index)
Declared at: llvm/include/llvm/Object/Wasm.h:234
Parameters
- uint32_t Index
¶llvm::SubtargetFeatures getFeatures() const
llvm::SubtargetFeatures getFeatures() const
Declared at: llvm/include/llvm/Object/Wasm.h:206
¶llvm::StringRef getFileFormatName() const
llvm::StringRef getFileFormatName() const
Declared at: llvm/include/llvm/Object/Wasm.h:204
¶const wasm::WasmObjectHeader& getHeader() const
const wasm::WasmObjectHeader& getHeader() const
Declared at: llvm/include/llvm/Object/Wasm.h:125
¶uint32_t getNumImportedFunctions() const
uint32_t getNumImportedFunctions() const
Declared at: llvm/include/llvm/Object/Wasm.h:155
¶uint32_t getNumImportedGlobals() const
uint32_t getNumImportedGlobals() const
Declared at: llvm/include/llvm/Object/Wasm.h:153
¶uint32_t getNumImportedTables() const
uint32_t getNumImportedTables() const
Declared at: llvm/include/llvm/Object/Wasm.h:154
¶uint32_t getNumImportedTags() const
uint32_t getNumImportedTags() const
Declared at: llvm/include/llvm/Object/Wasm.h:156
¶uint32_t getNumSections() const
uint32_t getNumSections() const
Declared at: llvm/include/llvm/Object/Wasm.h:157
¶uint32_t getNumberOfSymbols() const
uint32_t getNumberOfSymbols() const
Declared at: llvm/include/llvm/Object/Wasm.h:147
¶const wasm::WasmProducerInfo& getProducerInfo()
const
const wasm::WasmProducerInfo& getProducerInfo()
const
Declared at: llvm/include/llvm/Object/Wasm.h:134
¶uint64_t getRelocationOffset(
llvm::object::DataRefImpl Rel) const
uint64_t getRelocationOffset(
llvm::object::DataRefImpl Rel) const
Declared at: llvm/include/llvm/Object/Wasm.h:195
Parameters
¶llvm::object::symbol_iterator getRelocationSymbol(
llvm::object::DataRefImpl Rel) const
llvm::object::symbol_iterator getRelocationSymbol(
llvm::object::DataRefImpl Rel) const
Declared at: llvm/include/llvm/Object/Wasm.h:196
Parameters
¶uint64_t getRelocationType(
llvm::object::DataRefImpl Rel) const
uint64_t getRelocationType(
llvm::object::DataRefImpl Rel) const
Declared at: llvm/include/llvm/Object/Wasm.h:197
Parameters
¶void getRelocationTypeName(
llvm::object::DataRefImpl Rel,
SmallVectorImpl<char>& Result) const
void getRelocationTypeName(
llvm::object::DataRefImpl Rel,
SmallVectorImpl<char>& Result) const
Declared at: llvm/include/llvm/Object/Wasm.h:198
Parameters
- llvm::object::DataRefImpl Rel
- SmallVectorImpl<char>& Result
¶uint64_t getSectionAddress(
llvm::object::DataRefImpl Sec) const
uint64_t getSectionAddress(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:179
Parameters
¶uint64_t getSectionAlignment(
llvm::object::DataRefImpl Sec) const
uint64_t getSectionAlignment(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:184
Parameters
¶Expected<ArrayRef<uint8_t>> getSectionContents(
llvm::object::DataRefImpl Sec) const
Expected<ArrayRef<uint8_t>> getSectionContents(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:183
Parameters
¶uint64_t getSectionIndex(
llvm::object::DataRefImpl Sec) const
uint64_t getSectionIndex(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:180
Parameters
¶Expected<llvm::StringRef> getSectionName(
llvm::object::DataRefImpl Sec) const
Expected<llvm::StringRef> getSectionName(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:178
Parameters
¶uint64_t getSectionSize(
llvm::object::DataRefImpl Sec) const
uint64_t getSectionSize(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:181
Parameters
¶Expected<uint64_t> getSymbolAddress(
llvm::object::DataRefImpl Symb) const
Expected<uint64_t> getSymbolAddress(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:167
Parameters
¶uint32_t getSymbolAlignment(
llvm::object::DataRefImpl Symb) const
uint32_t getSymbolAlignment(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:170
Parameters
¶Expected<uint32_t> getSymbolFlags(
llvm::object::DataRefImpl Symb) const
Expected<uint32_t> getSymbolFlags(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:160
Parameters
¶Expected<llvm::StringRef> getSymbolName(
llvm::object::DataRefImpl Symb) const
Expected<llvm::StringRef> getSymbolName(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:165
Parameters
¶Expected<llvm::object::section_iterator>
getSymbolSection(
llvm::object::DataRefImpl Symb) const
Expected<llvm::object::section_iterator>
getSymbolSection(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:173
Parameters
¶uint32_t getSymbolSectionId(
llvm::object::SymbolRef Sym) const
uint32_t getSymbolSectionId(
llvm::object::SymbolRef Sym) const
Declared at: llvm/include/llvm/Object/Wasm.h:174
Parameters
¶uint32_t getSymbolSectionIdImpl(
const llvm::object::WasmSymbol& Symb) const
uint32_t getSymbolSectionIdImpl(
const llvm::object::WasmSymbol& Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:238
Parameters
- const llvm::object::WasmSymbol& Symb
¶Expected<SymbolRef::Type> getSymbolType(
llvm::object::DataRefImpl Symb) const
Expected<SymbolRef::Type> getSymbolType(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:172
Parameters
¶uint64_t getSymbolValueImpl(
llvm::object::DataRefImpl Symb) const
uint64_t getSymbolValueImpl(
llvm::object::DataRefImpl Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:169
Parameters
¶ArrayRef<wasm::WasmFeatureEntry>
getTargetFeatures() const
ArrayRef<wasm::WasmFeatureEntry>
getTargetFeatures() const
Declared at: llvm/include/llvm/Object/Wasm.h:135
¶const wasm::WasmRelocation& getWasmRelocation(
llvm::object::DataRefImpl Ref) const
const wasm::WasmRelocation& getWasmRelocation(
llvm::object::DataRefImpl Ref) const
Declared at: llvm/include/llvm/Object/Wasm.h:237
Parameters
¶const wasm::WasmRelocation& getWasmRelocation(
const llvm::object::RelocationRef& Ref) const
const wasm::WasmRelocation& getWasmRelocation(
const llvm::object::RelocationRef& Ref) const
Declared at: llvm/include/llvm/Object/Wasm.h:129
Parameters
- const llvm::object::RelocationRef& Ref
¶const llvm::object::WasmSection& getWasmSection(
const llvm::object::SectionRef& Section) const
const llvm::object::WasmSection& getWasmSection(
const llvm::object::SectionRef& Section) const
Declared at: llvm/include/llvm/Object/Wasm.h:128
Parameters
- const llvm::object::SectionRef& Section
¶const llvm::object::WasmSection& getWasmSection(
llvm::object::DataRefImpl Ref) const
const llvm::object::WasmSection& getWasmSection(
llvm::object::DataRefImpl Ref) const
Declared at: llvm/include/llvm/Object/Wasm.h:236
Parameters
¶const llvm::object::WasmSymbol& getWasmSymbol(
const llvm::object::DataRefImpl& Symb) const
const llvm::object::WasmSymbol& getWasmSymbol(
const llvm::object::DataRefImpl& Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:126
Parameters
- const llvm::object::DataRefImpl& Symb
¶const llvm::object::WasmSymbol& getWasmSymbol(
const llvm::object::SymbolRef& Symbol) const
const llvm::object::WasmSymbol& getWasmSymbol(
const llvm::object::SymbolRef& Symbol) const
Declared at: llvm/include/llvm/Object/Wasm.h:127
Parameters
- const llvm::object::SymbolRef& Symbol
¶uint64_t getWasmSymbolValue(
const llvm::object::WasmSymbol& Sym) const
uint64_t getWasmSymbolValue(
const llvm::object::WasmSymbol& Sym) const
Declared at: llvm/include/llvm/Object/Wasm.h:168
Parameters
- const llvm::object::WasmSymbol& Sym
¶ArrayRef<wasm::WasmGlobal> globals() const
ArrayRef<wasm::WasmGlobal> globals() const
Declared at: llvm/include/llvm/Object/Wasm.h:142
¶ArrayRef<wasm::WasmImport> imports() const
ArrayRef<wasm::WasmImport> imports() const
Declared at: llvm/include/llvm/Object/Wasm.h:139
¶bool isDefinedFunctionIndex(uint32_t Index) const
bool isDefinedFunctionIndex(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:218
Parameters
- uint32_t Index
¶bool isDefinedGlobalIndex(uint32_t Index) const
bool isDefinedGlobalIndex(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:221
Parameters
- uint32_t Index
¶bool isDefinedTableNumber(uint32_t Index) const
bool isDefinedTableNumber(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:222
Parameters
- uint32_t Index
¶bool isDefinedTagIndex(uint32_t Index) const
bool isDefinedTagIndex(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:224
Parameters
- uint32_t Index
¶bool isRelocatableObject() const
bool isRelocatableObject() const
Description
True if this is a relocatable object (.o/.obj).
Declared at: llvm/include/llvm/Object/Wasm.h:207
¶bool isSectionBSS(
llvm::object::DataRefImpl Sec) const
bool isSectionBSS(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:188
Parameters
¶bool isSectionCompressed(
llvm::object::DataRefImpl Sec) const
bool isSectionCompressed(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:185
Parameters
¶bool isSectionData(
llvm::object::DataRefImpl Sec) const
bool isSectionData(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:187
Parameters
¶bool isSectionText(
llvm::object::DataRefImpl Sec) const
bool isSectionText(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:186
Parameters
¶bool isSectionVirtual(
llvm::object::DataRefImpl Sec) const
bool isSectionVirtual(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:189
Parameters
¶bool isSharedObject() const
bool isSharedObject() const
Declared at: llvm/include/llvm/Object/Wasm.h:208
¶bool isValidDataSymbol(uint32_t Index) const
bool isValidDataSymbol(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:229
Parameters
- uint32_t Index
¶bool isValidFunctionIndex(uint32_t Index) const
bool isValidFunctionIndex(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:217
Parameters
- uint32_t Index
¶bool isValidFunctionSymbol(uint32_t Index) const
bool isValidFunctionSymbol(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:225
Parameters
- uint32_t Index
¶bool isValidGlobalIndex(uint32_t Index) const
bool isValidGlobalIndex(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:219
Parameters
- uint32_t Index
¶bool isValidGlobalSymbol(uint32_t Index) const
bool isValidGlobalSymbol(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:227
Parameters
- uint32_t Index
¶bool isValidSectionSymbol(uint32_t Index) const
bool isValidSectionSymbol(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:230
Parameters
- uint32_t Index
¶bool isValidTableNumber(uint32_t Index) const
bool isValidTableNumber(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:220
Parameters
- uint32_t Index
¶bool isValidTableSymbol(uint32_t Index) const
bool isValidTableSymbol(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:226
Parameters
- uint32_t Index
¶bool isValidTagIndex(uint32_t Index) const
bool isValidTagIndex(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:223
Parameters
- uint32_t Index
¶bool isValidTagSymbol(uint32_t Index) const
bool isValidTagSymbol(uint32_t Index) const
Declared at: llvm/include/llvm/Object/Wasm.h:228
Parameters
- uint32_t Index
¶const wasm::WasmLinkingData& linkingData() const
const wasm::WasmLinkingData& linkingData() const
Declared at: llvm/include/llvm/Object/Wasm.h:146
¶ArrayRef<wasm::WasmLimits> memories() const
ArrayRef<wasm::WasmLimits> memories() const
Declared at: llvm/include/llvm/Object/Wasm.h:141
¶void moveRelocationNext(
llvm::object::DataRefImpl& Rel) const
void moveRelocationNext(
llvm::object::DataRefImpl& Rel) const
Declared at: llvm/include/llvm/Object/Wasm.h:194
Parameters
¶void moveSectionNext(
llvm::object::DataRefImpl& Sec) const
void moveSectionNext(
llvm::object::DataRefImpl& Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:177
Parameters
¶void moveSymbolNext(
llvm::object::DataRefImpl& Symb) const
void moveSymbolNext(
llvm::object::DataRefImpl& Symb) const
Declared at: llvm/include/llvm/Object/Wasm.h:158
Parameters
¶llvm::Error parseCodeSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseCodeSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:254
Parameters
¶llvm::Error parseCustomSection(
llvm::object::WasmSection& Sec,
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseCustomSection(
llvm::object::WasmSection& Sec,
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:241
Parameters
¶llvm::Error parseDataCountSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseDataCountSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:256
Parameters
¶llvm::Error parseDataSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseDataSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:255
Parameters
¶llvm::Error parseDylink0Section(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseDylink0Section(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:260
Parameters
¶llvm::Error parseDylinkSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseDylinkSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:259
Parameters
¶llvm::Error parseElemSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseElemSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:253
Parameters
¶llvm::Error parseExportSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseExportSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:251
Parameters
¶llvm::Error parseFunctionSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseFunctionSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:246
Parameters
¶llvm::Error parseGlobalSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseGlobalSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:250
Parameters
¶llvm::Error parseImportSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseImportSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:245
Parameters
¶llvm::Error parseLinkingSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseLinkingSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:262
Parameters
¶llvm::Error parseLinkingSectionComdat(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseLinkingSectionComdat(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:264
Parameters
¶llvm::Error parseLinkingSectionSymtab(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseLinkingSectionSymtab(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:263
Parameters
¶llvm::Error parseMemorySection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseMemorySection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:248
Parameters
¶llvm::Error parseNameSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseNameSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:261
Parameters
¶llvm::Error parseProducersSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseProducersSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:265
Parameters
¶llvm::Error parseRelocSection(
llvm::StringRef Name,
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseRelocSection(
llvm::StringRef Name,
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:267
Parameters
¶llvm::Error parseSection(
llvm::object::WasmSection& Sec)
llvm::Error parseSection(
llvm::object::WasmSection& Sec)
Declared at: llvm/include/llvm/Object/Wasm.h:240
Parameters
¶llvm::Error parseStartSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseStartSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:252
Parameters
¶llvm::Error parseTableSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseTableSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:247
Parameters
¶llvm::Error parseTagSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseTagSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:249
Parameters
¶llvm::Error parseTargetFeaturesSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseTargetFeaturesSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:266
Parameters
¶llvm::Error parseTypeSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
llvm::Error parseTypeSection(
llvm::object::WasmObjectFile::ReadContext&
Ctx)
Declared at: llvm/include/llvm/Object/Wasm.h:244
Parameters
¶llvm::object::section_iterator section_begin()
const
llvm::object::section_iterator section_begin()
const
Declared at: llvm/include/llvm/Object/Wasm.h:201
¶llvm::object::section_iterator section_end() const
llvm::object::section_iterator section_end() const
Declared at: llvm/include/llvm/Object/Wasm.h:202
¶llvm::object::relocation_iterator
section_rel_begin(
llvm::object::DataRefImpl Sec) const
llvm::object::relocation_iterator
section_rel_begin(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:190
Parameters
¶llvm::object::relocation_iterator section_rel_end(
llvm::object::DataRefImpl Sec) const
llvm::object::relocation_iterator section_rel_end(
llvm::object::DataRefImpl Sec) const
Declared at: llvm/include/llvm/Object/Wasm.h:191
Parameters
¶uint32_t startFunction() const
uint32_t startFunction() const
Declared at: llvm/include/llvm/Object/Wasm.h:152
¶llvm::object::basic_symbol_iterator symbol_begin()
const
llvm::object::basic_symbol_iterator symbol_begin()
const
Declared at: llvm/include/llvm/Object/Wasm.h:162
¶llvm::object::basic_symbol_iterator symbol_end()
const
llvm::object::basic_symbol_iterator symbol_end()
const
Declared at: llvm/include/llvm/Object/Wasm.h:164
¶ArrayRef<llvm::object::WasmSymbol> syms() const
ArrayRef<llvm::object::WasmSymbol> syms() const
Declared at: llvm/include/llvm/Object/Wasm.h:145
¶ArrayRef<wasm::WasmTable> tables() const
ArrayRef<wasm::WasmTable> tables() const
Declared at: llvm/include/llvm/Object/Wasm.h:140
¶ArrayRef<wasm::WasmTag> tags() const
ArrayRef<wasm::WasmTag> tags() const
Declared at: llvm/include/llvm/Object/Wasm.h:143
¶ArrayRef<wasm::WasmSignature> types() const
ArrayRef<wasm::WasmSignature> types() const
Declared at: llvm/include/llvm/Object/Wasm.h:138