LLVM API Documentation

Public Member Functions | Static Public Member Functions | Friends
llvm::MCSectionELF Class Reference

#include <MCSectionELF.h>

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

List of all members.

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

Static Public Member Functions

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

Friends

class MCContext

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) [inline, static]

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 [inline, virtual]

Implements llvm::MCSection.

Definition at line 62 of file MCSectionELF.h.

References llvm::StringRef::str().

virtual std::string llvm::MCSectionELF::getLabelEndName ( ) const [inline, virtual]

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 compareBySuffix(), and 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 [inline, virtual]

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(), and llvm::ELF::SHF_ALLOC.

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 146 of file MCSectionELF.cpp.

References getType(), and llvm::ELF::SHT_NOBITS.

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 142 of file MCSectionELF.cpp.

References getFlags(), and llvm::ELF::SHF_EXECINSTR.


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: