LLVM  13.0.0git
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::MCSectionXCOFF Class Referencefinal

#include "llvm/MC/MCSectionXCOFF.h"

Inheritance diagram for llvm::MCSectionXCOFF:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCSectionXCOFF:
Collaboration graph
[legend]

Public Member Functions

 ~MCSectionXCOFF ()
 
XCOFF::StorageMappingClass getMappingClass () const
 
XCOFF::StorageClass getStorageClass () const
 
XCOFF::SymbolType getCSectType () const
 
MCSymbolXCOFFgetQualNameSymbol () const
 
void PrintSwitchToSection (const MCAsmInfo &MAI, const Triple &T, raw_ostream &OS, const MCExpr *Subsection) const override
 
bool UseCodeAlign () const override
 Return true if a .align directive should use "optimized nops" to fill instead of 0s. More...
 
bool isVirtualSection () const override
 Check whether this section is "virtual", that is has no actual object file contents. More...
 
StringRef getSymbolTableName () const
 
bool isMultiSymbolsAllowed () const
 
bool isCsect () const
 
bool isDwarfSect () const
 
Optional< XCOFF::DwarfSectionSubtypeFlagsgetDwarfSubtypeFlags () const
 
- Public Member Functions inherited from llvm::MCSection
 MCSection (const MCSection &)=delete
 
MCSectionoperator= (const MCSection &)=delete
 
StringRef getName () const
 
SectionKind getKind () const
 
SectionVariant getVariant () const
 
MCSymbolgetBeginSymbol ()
 
const MCSymbolgetBeginSymbol () const
 
void setBeginSymbol (MCSymbol *Sym)
 
MCSymbolgetEndSymbol (MCContext &Ctx)
 
bool hasEnded () const
 
unsigned getAlignment () const
 
void setAlignment (Align Value)
 
unsigned getOrdinal () const
 
void setOrdinal (unsigned Value)
 
unsigned getLayoutOrder () const
 
void setLayoutOrder (unsigned Value)
 
BundleLockStateType getBundleLockState () const
 
void setBundleLockState (BundleLockStateType NewState)
 
bool isBundleLocked () const
 
bool isBundleGroupBeforeFirstInst () const
 
void setBundleGroupBeforeFirstInst (bool IsFirst)
 
bool hasInstructions () const
 
void setHasInstructions (bool Value)
 
bool isRegistered () const
 
void setIsRegistered (bool Value)
 
MCSection::FragmentListTypegetFragmentList ()
 
const MCSection::FragmentListTypegetFragmentList () const
 
const MCDummyFragmentgetDummyFragment () const
 
MCDummyFragmentgetDummyFragment ()
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
MCSection::iterator getSubsectionInsertionPoint (unsigned Subsection)
 
void dump () const
 
virtual StringRef getVirtualSectionKind () const
 
void addPendingLabel (MCSymbol *label, unsigned Subsection=0)
 Add a pending label for the requested subsection. More...
 
void flushPendingLabels (MCFragment *F, uint64_t FOffset=0, unsigned Subsection=0)
 Associate all pending labels in a subsection with a fragment. More...
 
void flushPendingLabels ()
 Associate all pending labels with empty data fragments. More...
 

Static Public Member Functions

static bool classof (const MCSection *S)
 
- Static Public Member Functions inherited from llvm::MCSection
static FragmentListType MCSection::* getSublistAccess (MCFragment *)
 Support for MCFragment::getNextNode(). More...
 

Friends

class MCContext
 

Additional Inherited Members

- Public Types inherited from llvm::MCSection
enum  SectionVariant {
  SV_COFF = 0, SV_ELF, SV_MachO, SV_Wasm,
  SV_XCOFF
}
 
enum  BundleLockStateType { NotBundleLocked, BundleLocked, BundleLockedAlignToEnd }
 Express the state of bundle locked groups while emitting code. More...
 
using FragmentListType = iplist< MCFragment >
 
using const_iterator = FragmentListType::const_iterator
 
using iterator = FragmentListType::iterator
 
using const_reverse_iterator = FragmentListType::const_reverse_iterator
 
using reverse_iterator = FragmentListType::reverse_iterator
 
- Static Public Attributes inherited from llvm::MCSection
static constexpr unsigned NonUniqueID = ~0U
 
- Protected Member Functions inherited from llvm::MCSection
 MCSection (SectionVariant V, StringRef Name, SectionKind K, MCSymbol *Begin)
 
 ~MCSection ()
 
- Protected Attributes inherited from llvm::MCSection
StringRef Name
 
SectionVariant Variant
 
SectionKind Kind
 

Detailed Description

Definition at line 32 of file MCSectionXCOFF.h.

Constructor & Destructor Documentation

◆ ~MCSectionXCOFF()

MCSectionXCOFF::~MCSectionXCOFF ( )
default

Member Function Documentation

◆ classof()

static bool llvm::MCSectionXCOFF::classof ( const MCSection S)
inlinestatic

Definition at line 87 of file MCSectionXCOFF.h.

References S, and llvm::MCSection::SV_XCOFF.

◆ getCSectType()

XCOFF::SymbolType llvm::MCSectionXCOFF::getCSectType ( ) const
inline

Definition at line 98 of file MCSectionXCOFF.h.

References assert(), and isCsect().

Referenced by PrintSwitchToSection().

◆ getDwarfSubtypeFlags()

Optional<XCOFF::DwarfSectionSubtypeFlags> llvm::MCSectionXCOFF::getDwarfSubtypeFlags ( ) const
inline

Definition at line 113 of file MCSectionXCOFF.h.

Referenced by PrintSwitchToSection().

◆ getMappingClass()

XCOFF::StorageMappingClass llvm::MCSectionXCOFF::getMappingClass ( ) const
inline

Definition at line 91 of file MCSectionXCOFF.h.

References assert(), and isCsect().

Referenced by PrintSwitchToSection().

◆ getQualNameSymbol()

MCSymbolXCOFF* llvm::MCSectionXCOFF::getQualNameSymbol ( ) const
inline

◆ getStorageClass()

XCOFF::StorageClass llvm::MCSectionXCOFF::getStorageClass ( ) const
inline

Definition at line 95 of file MCSectionXCOFF.h.

References llvm::MCSymbolXCOFF::getStorageClass().

◆ getSymbolTableName()

StringRef llvm::MCSectionXCOFF::getSymbolTableName ( ) const
inline

Definition at line 109 of file MCSectionXCOFF.h.

Referenced by llvm::MCSymbolXCOFF::getRepresentedCsect().

◆ isCsect()

bool llvm::MCSectionXCOFF::isCsect ( ) const
inline

◆ isDwarfSect()

bool llvm::MCSectionXCOFF::isDwarfSect ( ) const
inline

Definition at line 112 of file MCSectionXCOFF.h.

Referenced by PrintSwitchToSection().

◆ isMultiSymbolsAllowed()

bool llvm::MCSectionXCOFF::isMultiSymbolsAllowed ( ) const
inline

Definition at line 110 of file MCSectionXCOFF.h.

◆ isVirtualSection()

bool MCSectionXCOFF::isVirtualSection ( ) const
overridevirtual

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

Implements llvm::MCSection.

Definition at line 120 of file MCSectionXCOFF.cpp.

References assert(), isCsect(), and llvm::XCOFF::XTY_CM.

◆ PrintSwitchToSection()

void MCSectionXCOFF::PrintSwitchToSection ( const MCAsmInfo MAI,
const Triple T,
raw_ostream OS,
const MCExpr Subsection 
) const
overridevirtual

◆ UseCodeAlign()

bool MCSectionXCOFF::UseCodeAlign ( ) const
overridevirtual

Return true if a .align directive should use "optimized nops" to fill instead of 0s.

Implements llvm::MCSection.

Definition at line 118 of file MCSectionXCOFF.cpp.

References llvm::MCSection::getKind(), and llvm::SectionKind::isText().

Friends And Related Function Documentation

◆ MCContext

friend class MCContext
friend

Definition at line 33 of file MCSectionXCOFF.h.


The documentation for this class was generated from the following files: