LLVM  mainline
Public Member Functions | Static Public Member Functions | Friends
llvm::MCSectionCOFF Class Reference

MCSectionCOFF - This represents a section on Windows. More...

#include <MCSectionCOFF.h>

Inheritance diagram for llvm::MCSectionCOFF:
Inheritance graph
Collaboration diagram for llvm::MCSectionCOFF:
Collaboration graph

List of all members.

Public Member Functions

bool ShouldOmitSectionDirective (StringRef Name, const MCAsmInfo &MAI) const
StringRef getSectionName () const
unsigned getCharacteristics () const
MCSymbolgetCOMDATSymbol () const
int getSelection () const
void setSelection (int Selection) const
void PrintSwitchToSection (const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const override
bool UseCodeAlign () const override
bool isVirtualSection () const override

Static Public Member Functions

static bool classof (const MCSection *S)


class MCContext

Detailed Description

MCSectionCOFF - This represents a section on Windows.

Definition at line 25 of file MCSectionCOFF.h.

Member Function Documentation

static bool llvm::MCSectionCOFF::classof ( const MCSection S) [inline, static]

Definition at line 75 of file MCSectionCOFF.h.

References llvm::MCSection::getVariant(), and llvm::MCSection::SV_COFF.

Definition at line 65 of file MCSectionCOFF.h.

Referenced by llvm::WinEH::getUnwindInfoSection().

Definition at line 66 of file MCSectionCOFF.h.

bool MCSectionCOFF::isVirtualSection ( ) const [override, virtual]

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

Implements llvm::MCSection.

Definition at line 106 of file MCSectionCOFF.cpp.

References getCharacteristics(), and llvm::COFF::IMAGE_SCN_CNT_UNINITIALIZED_DATA.

void MCSectionCOFF::PrintSwitchToSection ( const MCAsmInfo MAI,
raw_ostream OS,
const MCExpr Subsection 
) const [override, virtual]
void MCSectionCOFF::setSelection ( int  Selection) const

Definition at line 33 of file MCSectionCOFF.cpp.

References llvm::COFF::IMAGE_SCN_LNK_COMDAT.

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

Definition at line 21 of file MCSectionCOFF.cpp.

Referenced by PrintSwitchToSection().

bool MCSectionCOFF::UseCodeAlign ( ) const [override, virtual]

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

Implements llvm::MCSection.

Definition at line 102 of file MCSectionCOFF.cpp.

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

Friends And Related Function Documentation

friend class MCContext [friend]

Definition at line 46 of file MCSectionCOFF.h.

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