This represents a section on Windows

Synopsis

Declared in <llvm/MC/MCSectionCOFF.h>

class MCSectionCOFF 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.

getCOMDATSymbol

Return the COMDAT symbol, or null if this is not a COMDAT section.

getCharacteristics

Return the COFF section Characteristics flags.

getDummyFragment

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

getEndSymbol

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

getName

Return the name of this section.

getOrAssignWinCFISectionID

Return this section's WinCFI ID, assigning one from NextID if needed.

getOrdinal

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

getSelection

Return the COMDAT Selection field, or zero if not a COMDAT 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.

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.

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.

setSelection

Set the COMDAT Selection type and mark the section as COMDAT.

shouldOmitSectionDirective

Decides whether a '.section' directive should be printed before the section name.

Static Member Functions

Name

Description

isImplicitlyDiscardable

Return true if Name implies IMAGE_SCN_MEM_DISCARDABLE (e.g. .debug*).

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::MCAsmInfoCOFF

Base class for asm properties and features on COFF‐based targets.

llvm::MCContext

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

Created with MrDocs