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::MCSectionELF Class Reference

#include <MCSectionELF.h>

Inheritance diagram for llvm::MCSectionELF:
Inheritance graph
[legend]
Collaboration diagram for llvm::MCSectionELF:
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 getType () const
 
unsigned getFlags () const
 
unsigned getEntrySize () const
 
const MCSymbolgetGroup () const
 
void PrintSwitchToSection (const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const
 
virtual bool UseCodeAlign () const
 
virtual bool isVirtualSection () const
 
virtual bool isBaseAddressKnownZero () const
 
- Public Member Functions inherited from llvm::MCSection
virtual ~MCSection ()
 
SectionKind getKind () const
 
SectionVariant getVariant () const
 

Static Public Member Functions

static bool classof (const MCSection *S)
 
static unsigned DetermineEntrySize (SectionKind Kind)
 

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

MCSectionELF - This represents a section on linux, lots of unix variants and some bare metal systems.

Definition at line 29 of file MCSectionELF.h.

Member Function Documentation

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

Definition at line 84 of file MCSectionELF.h.

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

unsigned MCSectionELF::DetermineEntrySize ( SectionKind  Kind)
static
unsigned llvm::MCSectionELF::getEntrySize ( ) const
inline

Definition at line 69 of file MCSectionELF.h.

unsigned llvm::MCSectionELF::getFlags ( ) const
inline
const MCSymbol* llvm::MCSectionELF::getGroup ( ) const
inline

Definition at line 70 of file MCSectionELF.h.

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

Implements llvm::MCSection.

Definition at line 62 of file MCSectionELF.h.

References llvm::StringRef::str().

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

Implements llvm::MCSection.

Definition at line 64 of file MCSectionELF.h.

References llvm::StringRef::str().

StringRef llvm::MCSectionELF::getSectionName ( ) const
inline

Definition at line 61 of file MCSectionELF.h.

Referenced by PrintSwitchToSection().

unsigned llvm::MCSectionELF::getType ( ) const
inline

Definition at line 67 of file MCSectionELF.h.

References Type.

Referenced by isVirtualSection().

virtual bool llvm::MCSectionELF::isBaseAddressKnownZero ( ) const
inlinevirtual

isBaseAddressKnownZero - We know that non-allocatable sections (like debug info) have a base of zero.

Reimplemented from llvm::MCSection.

Definition at line 80 of file MCSectionELF.h.

References getFlags().

bool MCSectionELF::isVirtualSection ( ) const
virtual

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

Implements llvm::MCSection.

Definition at line 157 of file MCSectionELF.cpp.

References getType().

void MCSectionELF::PrintSwitchToSection ( const MCAsmInfo MAI,
raw_ostream OS,
const MCExpr Subsection 
) const
virtual
bool MCSectionELF::ShouldOmitSectionDirective ( StringRef  Name,
const MCAsmInfo MAI 
) const

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

Definition at line 24 of file MCSectionELF.cpp.

References llvm::MCAsmInfo::usesELFSectionDirectiveForBSS().

Referenced by PrintSwitchToSection().

bool MCSectionELF::UseCodeAlign ( ) const
virtual

Implements llvm::MCSection.

Definition at line 153 of file MCSectionELF.cpp.

References getFlags().

Friends And Related Function Documentation

friend class MCContext
friend

Definition at line 49 of file MCSectionELF.h.


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