This represents a section on wasm.

Synopsis

Declared in <llvm/MC/MCSectionWasm.h>

class MCSectionWasm final
    : public MCSection

Base Classes

Name

Description

MCSection

Instances of this class represent a uniqued identifier for a section in the current translation unit. The MCContext class uniques and creates these.

Types

Name

Description

FragList

Intrusive singly‐linked list of fragments for a subsection.

iterator

Forward iterator over fragments in a section.

Member Functions

Name

Description

operator= [deleted]

Deleted copy assignment.

begin

Return an iterator to the first fragment in this section.

curFragList

Return the active fragment list for this section.

dump

Print a human‐readable description of this section to stderr.

end

Return an end iterator past the last fragment in this section.

ensureMinAlignment

Makes sure that Alignment is at least MinAlignment.

firstLinkerRelaxable

Return the layout order of the first linker‐relaxable fragment, or ~0u if none.

getAlign

Return the required alignment of this section.

getBeginSymbol

Return the section begin symbol, if any.

getDummyFragment

Return the dummy fragment used as a sentinel for this section.

getEndSymbol

Return the section end symbol, creating it in Ctx if needed.

getGroup

Return the section group signature symbol, or null if none.

getName

Return the name of this section.

getOrdinal

Return this section's index in the assembler's section list.

getPassive

Return true if this data section uses a passive Wasm segment.

getSectionOffset

Return the offset of this section within the Wasm code/data section.

getSegmentFlags

Return the Wasm segment flags bitfield (WasmSegmentFlag).

getSegmentIndex

Return the Wasm data segment index for this data section.

getUniqueID

Return the unique ID assigned to this section.

hasEnded

Return true if an end symbol has already been created for this section.

hasInstructions

Return true if instructions have been emitted into this section.

isBssSection

Check whether this section is "virtual", that is has no actual object file contents.

isLinkerRelaxable

Return true if this section contains any linker‐relaxable fragments.

isMetadata

Return true if this is a Wasm metadata section.

isRegistered

Return true if this section has been registered with the assembler.

isText

Return true if this is a text (code) section.

isUnique

Return true if this section was created with a unique ID.

isWasmData

Return true if this is a Wasm data section (read‐only or writable).

setAlignment

Set the required alignment of this section.

setBeginSymbol

Set the section begin symbol; may be called only once.

setFirstLinkerRelaxable

Record the layout order of the first linker‐relaxable fragment.

setHasInstructions

Set whether instructions have been emitted into this section.

setIsRegistered

Set whether this section has been registered with the assembler.

setOrdinal

Set this section's index in the assembler's section list.

setPassive

Set whether this data section uses a passive Wasm segment.

setSectionOffset

Set the offset of this section within the Wasm code/data section.

setSegmentIndex

Set the Wasm data segment index for this data section.

Static Data Members

Name

Description

NonUniqueID

Sentinel unique ID meaning the section is not uniquely identified.

Protected Data Members

Name

Description

Name

Section name as it appears in the object file.

Friends

Name

Description

llvm::MCAsmInfoWasm

Target asm properties for Wasm‐based targets.

llvm::MCContext

Context object for machine code objects. This class owns all of the sections that it creates.

Created with MrDocs