LLVM  3.7.0
Public Member Functions | Static Public Member Functions | Friends | List of all members
llvm::MCSectionELF Class Reference

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

#include <MCSectionELF.h>

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

Public Member Functions

bool ShouldOmitSectionDirective (StringRef Name, const MCAsmInfo &MAI) const
 ShouldOmitSectionDirective - Decides whether a '.section' directive should be printed before the section name. More...
 
StringRef getSectionName () const
 
unsigned getType () const
 
unsigned getFlags () const
 
unsigned getEntrySize () const
 
const MCSymbolELFgetGroup () const
 
void PrintSwitchToSection (const MCAsmInfo &MAI, raw_ostream &OS, const MCExpr *Subsection) const override
 
bool UseCodeAlign () const override
 Return true if a .align directive should use "optimized nops" to fill instead of 0s. More...
 
bool isVirtualSection () const override
 Check whether this section is "virtual", that is has no actual object file contents. More...
 
bool isUnique () const
 
unsigned getUniqueID () const
 
const MCSectionELFgetAssociatedSection () const
 
- Public Member Functions inherited from llvm::MCSection
virtual ~MCSection ()
 
SectionKind getKind () const
 
SectionVariant getVariant () const
 
MCSymbolgetBeginSymbol ()
 
const MCSymbolgetBeginSymbol () const
 
void setBeginSymbol (MCSymbol *Sym)
 
MCSymbolgetEndSymbol (MCContext &Ctx)
 
bool hasEnded () const
 
unsigned getAlignment () const
 
void setAlignment (unsigned Value)
 
unsigned getOrdinal () const
 
void setOrdinal (unsigned Value)
 
unsigned getLayoutOrder () const
 
void setLayoutOrder (unsigned Value)
 
BundleLockStateType getBundleLockState () const
 
void setBundleLockState (BundleLockStateType NewState)
 
bool isBundleLocked () const
 
bool isBundleGroupBeforeFirstInst () const
 
void setBundleGroupBeforeFirstInst (bool IsFirst)
 
bool hasInstructions () const
 
void setHasInstructions (bool Value)
 
bool isRegistered () const
 
void setIsRegistered (bool Value)
 
MCSection::FragmentListTypegetFragmentList ()
 
const MCSection::FragmentListTypegetFragmentList () const
 
MCSection::iterator begin ()
 
MCSection::const_iterator begin () const
 
MCSection::iterator end ()
 
MCSection::const_iterator end () const
 
MCSection::reverse_iterator rbegin ()
 
MCSection::const_reverse_iterator rbegin () const
 
MCSection::reverse_iterator rend ()
 
MCSection::const_reverse_iterator rend () const
 
MCSection::iterator getSubsectionInsertionPoint (unsigned Subsection)
 
void dump ()
 

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 }
 
enum  BundleLockStateType { NotBundleLocked, BundleLocked, BundleLockedAlignToEnd }
 Express the state of bundle locked groups while emitting code. More...
 
typedef iplist< MCFragmentFragmentListType
 
typedef
FragmentListType::const_iterator 
const_iterator
 
typedef FragmentListType::iterator iterator
 
typedef
FragmentListType::const_reverse_iterator 
const_reverse_iterator
 
typedef
FragmentListType::reverse_iterator 
reverse_iterator
 
- Protected Member Functions inherited from llvm::MCSection
 MCSection (SectionVariant V, SectionKind K, MCSymbol *Begin)
 
- 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 30 of file MCSectionELF.h.

Member Function Documentation

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

Definition at line 91 of file MCSectionELF.h.

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

const MCSectionELF* llvm::MCSectionELF::getAssociatedSection ( ) const
inline

Definition at line 89 of file MCSectionELF.h.

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

Definition at line 78 of file MCSectionELF.h.

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

Definition at line 77 of file MCSectionELF.h.

Referenced by llvm::MCELFStreamer::EmitLabel(), and UseCodeAlign().

const MCSymbolELF* llvm::MCSectionELF::getGroup ( ) const
inline

Definition at line 79 of file MCSectionELF.h.

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

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

Definition at line 76 of file MCSectionELF.h.

Referenced by isVirtualSection().

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

Definition at line 87 of file MCSectionELF.h.

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

bool llvm::MCSectionELF::isUnique ( ) const
inline

Definition at line 86 of file MCSectionELF.h.

Referenced by PrintSwitchToSection(), and ShouldOmitSectionDirective().

bool MCSectionELF::isVirtualSection ( ) const
overridevirtual

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

Implements llvm::MCSection.

Definition at line 169 of file MCSectionELF.cpp.

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

void MCSectionELF::PrintSwitchToSection ( const MCAsmInfo MAI,
raw_ostream OS,
const MCExpr Subsection 
) const
overridevirtual
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 isUnique(), and llvm::MCAsmInfo::usesELFSectionDirectiveForBSS().

Referenced by PrintSwitchToSection().

bool MCSectionELF::UseCodeAlign ( ) const
overridevirtual

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

Implements llvm::MCSection.

Definition at line 165 of file MCSectionELF.cpp.

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

Friends And Related Function Documentation

friend class MCContext
friend

Definition at line 55 of file MCSectionELF.h.


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