LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::MCSectionCOFF Class Reference

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

#include <MCSectionCOFF.h>

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

Public Member Functions

bool ShouldOmitSectionDirective (StringRef Name, const MCAsmInfo &MAI) const
 
StringRef getSectionName () const
 
virtual std::string getLabelBeginName () const
 
virtual std::string getLabelEndName () const
 
unsigned getCharacteristics () const
 
int getSelection () const
 
const MCSectionCOFFgetAssocSection () const
 
void setSelection (int Selection, const MCSectionCOFF *Assoc=0) const
 
virtual void PrintSwitchToSection (const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const
 
virtual bool UseCodeAlign () const
 
virtual bool isVirtualSection () const
 
- Public Member Functions inherited from llvm::MCSection
virtual ~MCSection ()
 
SectionKind getKind () const
 
SectionVariant getVariant () const
 
virtual bool isBaseAddressKnownZero () const
 

Static Public Member Functions

static bool classof (const MCSection *S)
 

Friends

class MCContext
 

Additional Inherited Members

- Public Types inherited from llvm::MCSection
enum  SectionVariant { SV_COFF = 0, SV_ELF, SV_MachO }
 
- Protected Member Functions inherited from llvm::MCSection
 MCSection (SectionVariant V, SectionKind K)
 
- Protected Attributes inherited from llvm::MCSection
SectionVariant Variant
 
SectionKind Kind
 

Detailed Description

MCSectionCOFF - This represents a section on Windows.

Definition at line 24 of file MCSectionCOFF.h.

Member Function Documentation

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

Definition at line 82 of file MCSectionCOFF.h.

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

const MCSectionCOFF* llvm::MCSectionCOFF::getAssocSection ( ) const
inline

Definition at line 72 of file MCSectionCOFF.h.

unsigned llvm::MCSectionCOFF::getCharacteristics ( ) const
inline

Definition at line 70 of file MCSectionCOFF.h.

References Characteristics.

Referenced by isVirtualSection(), and PrintSwitchToSection().

virtual std::string llvm::MCSectionCOFF::getLabelBeginName ( ) const
inlinevirtual

Implements llvm::MCSection.

Definition at line 64 of file MCSectionCOFF.h.

References llvm::StringRef::str().

virtual std::string llvm::MCSectionCOFF::getLabelEndName ( ) const
inlinevirtual

Implements llvm::MCSection.

Definition at line 67 of file MCSectionCOFF.h.

References llvm::StringRef::str().

StringRef llvm::MCSectionCOFF::getSectionName ( ) const
inline
int llvm::MCSectionCOFF::getSelection ( ) const
inline

Definition at line 71 of file MCSectionCOFF.h.

bool MCSectionCOFF::isVirtualSection ( ) const
virtual

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

Implements llvm::MCSection.

Definition at line 97 of file MCSectionCOFF.cpp.

References getCharacteristics().

void MCSectionCOFF::PrintSwitchToSection ( const MCAsmInfo MAI,
raw_ostream OS,
const MCExpr Subsection 
) const
virtual
void MCSectionCOFF::setSelection ( int  Selection,
const MCSectionCOFF Assoc = 0 
) const

Definition at line 31 of file MCSectionCOFF.cpp.

References llvm::COFF::IMAGE_COMDAT_SELECT_ASSOCIATIVE.

bool MCSectionCOFF::ShouldOmitSectionDirective ( StringRef  Name,
const MCAsmInfo MAI 
) const

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
virtual

Implements llvm::MCSection.

Definition at line 93 of file MCSectionCOFF.cpp.

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

Friends And Related Function Documentation

friend class MCContext
friend

Definition at line 45 of file MCSectionCOFF.h.


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