LLVM API Documentation
#include <MCSectionELF.h>
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 MCSymbol * | getGroup () 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 |
![]() | |
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 | |
![]() | |
enum | SectionVariant { SV_COFF = 0, SV_ELF, SV_MachO } |
![]() | |
MCSection (SectionVariant V, SectionKind K) | |
![]() | |
SectionVariant | Variant |
SectionKind | Kind |
MCSectionELF - This represents a section on linux, lots of unix variants and some bare metal systems.
Definition at line 29 of file MCSectionELF.h.
Definition at line 84 of file MCSectionELF.h.
References llvm::MCSection::getVariant(), and llvm::MCSection::SV_ELF.
|
static |
Definition at line 161 of file MCSectionELF.cpp.
References llvm::SectionKind::isMergeable1ByteCString(), llvm::SectionKind::isMergeable2ByteCString(), llvm::SectionKind::isMergeable4ByteCString(), llvm::SectionKind::isMergeableConst16(), llvm::SectionKind::isMergeableConst4(), and llvm::SectionKind::isMergeableConst8().
Referenced by llvm::MCContext::getELFSection().
|
inline |
Definition at line 69 of file MCSectionELF.h.
|
inline |
Definition at line 68 of file MCSectionELF.h.
Referenced by llvm::MCELFStreamer::EmitLabel(), isBaseAddressKnownZero(), and UseCodeAlign().
|
inline |
Definition at line 70 of file MCSectionELF.h.
|
inlinevirtual |
Implements llvm::MCSection.
Definition at line 62 of file MCSectionELF.h.
References llvm::StringRef::str().
|
inlinevirtual |
Implements llvm::MCSection.
Definition at line 64 of file MCSectionELF.h.
References llvm::StringRef::str().
|
inline |
Definition at line 61 of file MCSectionELF.h.
Referenced by PrintSwitchToSection().
|
inline |
|
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().
|
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().
|
virtual |
Implements llvm::MCSection.
Definition at line 58 of file MCSectionELF.cpp.
References llvm::MCAsmInfo::getCommentString(), llvm::MCSymbol::getName(), getSectionName(), printName(), ShouldOmitSectionDirective(), and llvm::MCAsmInfo::usesSunStyleELFSectionSwitchSyntax().
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().
|
virtual |
|
friend |
Definition at line 49 of file MCSectionELF.h.