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
std::string getLabelBeginName () const override
std::string getLabelEndName () const override
unsigned getType () const
unsigned getFlags () const
unsigned getEntrySize () const
const MCSymbolgetGroup () const
void PrintSwitchToSection (const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const override
bool UseCodeAlign () const override
bool isVirtualSection () const override
bool isBaseAddressKnownZero () const override

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 30 of file MCSectionELF.h.


Member Function Documentation

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

Definition at line 92 of file MCSectionELF.h.

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

Definition at line 78 of file MCSectionELF.h.

Definition at line 79 of file MCSectionELF.h.

Referenced by llvm::MCContext::renameELFSection().

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

Implements llvm::MCSection.

Definition at line 66 of file MCSectionELF.h.

References llvm::MCSymbol::getName(), and llvm::StringRef::str().

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

Implements llvm::MCSection.

Definition at line 71 of file MCSectionELF.h.

References llvm::MCSymbol::getName(), and llvm::StringRef::str().

Definition at line 76 of file MCSectionELF.h.

References Type.

Referenced by isVirtualSection().

bool llvm::MCSectionELF::isBaseAddressKnownZero ( ) const [inline, override, virtual]

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

Reimplemented from llvm::MCSection.

Definition at line 88 of file MCSectionELF.h.

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

bool MCSectionELF::isVirtualSection ( ) const [override, 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(), and llvm::ELF::SHT_NOBITS.

void MCSectionELF::PrintSwitchToSection ( const MCAsmInfo MAI,
raw_ostream OS,
const MCExpr Subsection 
) const [override, virtual]

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

Implements llvm::MCSection.

Definition at line 153 of file MCSectionELF.cpp.

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


Friends And Related Function Documentation

friend class MCContext [friend]

Definition at line 50 of file MCSectionELF.h.


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