|
LLVM
3.7.0
|
Instances of this class represent a uniqued identifier for a section in the current translation unit. More...
#include <MCSection.h>
Public Types | |
| 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< MCFragment > | FragmentListType |
| 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 | |
| MCSection (SectionVariant V, SectionKind K, MCSymbol *Begin) | |
Protected Attributes | |
| SectionVariant | Variant |
| SectionKind | Kind |
Instances of this class represent a uniqued identifier for a section in the current translation unit.
The MCContext class uniques and creates these.
Definition at line 48 of file MCSection.h.
Definition at line 61 of file MCSection.h.
Definition at line 64 of file MCSection.h.
Definition at line 59 of file MCSection.h.
Definition at line 62 of file MCSection.h.
Definition at line 65 of file MCSection.h.
Express the state of bundle locked groups while emitting code.
| Enumerator | |
|---|---|
| NotBundleLocked | |
| BundleLocked | |
| BundleLockedAlignToEnd | |
Definition at line 53 of file MCSection.h.
| Enumerator | |
|---|---|
| SV_COFF | |
| SV_ELF | |
| SV_MachO | |
Definition at line 50 of file MCSection.h.
|
protected |
Definition at line 22 of file MCSection.cpp.
|
virtual |
Definition at line 34 of file MCSection.cpp.
| MCSection::iterator MCSection::begin | ( | ) |
Definition at line 103 of file MCSection.cpp.
References llvm::iplist< NodeTy, Traits >::begin().
Referenced by begin(), dump(), llvm::MCAssembler::Finish(), and llvm::MCAssembler::writeSectionData().
|
inline |
Definition at line 156 of file MCSection.h.
References begin().
| void MCSection::dump | ( | ) |
Definition at line 89 of file MCSection.cpp.
References begin(), end(), and llvm::errs().
| MCSection::iterator MCSection::end | ( | ) |
Definition at line 105 of file MCSection.cpp.
References llvm::iplist< NodeTy, Traits >::end().
Referenced by dump(), end(), llvm::MCAssembler::Finish(), getSubsectionInsertionPoint(), and llvm::MCAssembler::writeSectionData().
|
inline |
Definition at line 161 of file MCSection.h.
References end().
|
inline |
Definition at line 124 of file MCSection.h.
Referenced by llvm::MCWinCOFFStreamer::EmitCOFFSafeSEH(), llvm::MCObjectStreamer::EmitValueToAlignment(), llvm::MipsTargetELFStreamer::finish(), llvm::MCELFStreamer::Flush(), llvm::MachObjectWriter::getPaddingSize(), setSectionAlignmentForBundling(), and llvm::MachObjectWriter::writeSection().
|
inline |
Definition at line 113 of file MCSection.h.
Referenced by llvm::DwarfCompileUnit::addScopeRangeList(), llvm::MCELFStreamer::ChangeSection(), llvm::AsmPrinter::emitDwarfSymbolReference(), llvm::DwarfUnit::emitHeader(), getBeginSymbol(), llvm::DwarfCompileUnit::getSectionSym(), llvm::DwarfCompileUnit::initStmtList(), and llvm::MCStreamer::SwitchSection().
Definition at line 114 of file MCSection.h.
References getBeginSymbol().
|
inline |
Definition at line 133 of file MCSection.h.
Referenced by llvm::MCELFStreamer::EmitBundleUnlock().
Definition at line 26 of file MCSection.cpp.
References llvm::MCContext::createTempSymbol().
Referenced by llvm::MCStreamer::endSection().
|
inline |
Definition at line 150 of file MCSection.h.
Referenced by llvm::MCObjectStreamer::flushPendingLabels(), getFragmentList(), llvm::MCAsmLayout::getSectionAddressSize(), getSubsectionInsertionPoint(), llvm::MCObjectStreamer::insert(), and llvm::MCFragment::MCFragment().
|
inline |
Definition at line 151 of file MCSection.h.
References getFragmentList().
|
inline |
Definition at line 109 of file MCSection.h.
References Kind.
Referenced by llvm::MCContext::getAssociativeCOFFSection(), and llvm::MCSectionCOFF::UseCodeAlign().
|
inline |
Definition at line 130 of file MCSection.h.
Referenced by llvm::MachObjectWriter::getPaddingSize().
|
inline |
Definition at line 127 of file MCSection.h.
| MCSection::iterator MCSection::getSubsectionInsertionPoint | ( | unsigned | Subsection | ) |
Definition at line 57 of file MCSection.cpp.
References end(), F(), getFragmentList(), llvm::iplist< NodeTy, Traits >::insert(), llvm::IP, llvm::AArch64CC::MI, and llvm::MCFragment::setParent().
Referenced by llvm::MCObjectStreamer::changeSectionImpl().
|
inline |
Definition at line 111 of file MCSection.h.
References Variant.
Referenced by llvm::MCWinCOFFStreamer::BeginCOFFSymbolDef(), llvm::MCSectionCOFF::classof(), llvm::MCSectionMachO::classof(), llvm::MCSectionELF::classof(), llvm::MCWinCOFFStreamer::EmitCommonSymbol(), and llvm::MCWinCOFFStreamer::EmitSymbolAttribute().
| bool MCSection::hasEnded | ( | ) | const |
Definition at line 32 of file MCSection.cpp.
References llvm::MCSymbol::isInSection().
Referenced by llvm::MCStreamer::SwitchSection().
|
inline |
Definition at line 144 of file MCSection.h.
Referenced by llvm::MCObjectStreamer::mayHaveInstructions(), setSectionAlignmentForBundling(), and llvm::MachObjectWriter::writeSection().
|
inline |
Definition at line 137 of file MCSection.h.
Referenced by llvm::MCELFStreamer::EmitBundleUnlock().
|
inline |
Definition at line 135 of file MCSection.h.
References NotBundleLocked.
Referenced by llvm::MCObjectStreamer::EmitInstruction().
|
inline |
Definition at line 147 of file MCSection.h.
Referenced by llvm::MCAssembler::registerSection().
|
pure virtual |
Check whether this section is "virtual", that is has no actual object file contents.
Implemented in llvm::MCSectionELF, llvm::MCSectionMachO, llvm::MCSectionCOFF, and llvm::NVPTXSection.
Referenced by llvm::MCObjectStreamer::EmitZeros(), llvm::MachObjectWriter::getPaddingSize(), llvm::MCAsmLayout::getSectionFileSize(), and llvm::MCAssembler::writeSectionData().
|
pure virtual |
Implemented in llvm::MCSectionELF, llvm::MCSectionMachO, llvm::MCSectionCOFF, and llvm::NVPTXSection.
| MCSection::reverse_iterator MCSection::rbegin | ( | ) |
Definition at line 107 of file MCSection.cpp.
References llvm::iplist< NodeTy, Traits >::rbegin().
Referenced by rbegin().
|
inline |
Definition at line 166 of file MCSection.h.
References rbegin().
| MCSection::reverse_iterator MCSection::rend | ( | ) |
Definition at line 109 of file MCSection.cpp.
References llvm::iplist< NodeTy, Traits >::rend().
Referenced by rend().
|
inline |
Definition at line 171 of file MCSection.h.
References rend().
|
inline |
Definition at line 125 of file MCSection.h.
Referenced by llvm::MCWinCOFFStreamer::EmitCOFFSafeSEH(), llvm::MipsTargetELFStreamer::emitDirectiveEnd(), llvm::MipsTargetELFStreamer::emitMipsAbiFlags(), llvm::MipsRegInfoRecord::EmitMipsOptionRecord(), llvm::MCObjectStreamer::EmitValueToAlignment(), llvm::MipsTargetELFStreamer::finish(), llvm::MCELFStreamer::Flush(), and setSectionAlignmentForBundling().
|
inline |
Definition at line 117 of file MCSection.h.
Referenced by llvm::MCELFStreamer::ChangeSection().
|
inline |
Definition at line 140 of file MCSection.h.
Referenced by llvm::MCELFStreamer::EmitBundleLock().
| void MCSection::setBundleLockState | ( | BundleLockStateType | NewState | ) |
Definition at line 37 of file MCSection.cpp.
References BundleLockedAlignToEnd, NotBundleLocked, and llvm::report_fatal_error().
Referenced by llvm::MCELFStreamer::EmitBundleLock(), and llvm::MCELFStreamer::EmitBundleUnlock().
|
inline |
Definition at line 145 of file MCSection.h.
Referenced by llvm::MCObjectStreamer::EmitInstruction().
|
inline |
Definition at line 148 of file MCSection.h.
Referenced by llvm::MCAssembler::registerSection().
|
inline |
Definition at line 131 of file MCSection.h.
Referenced by llvm::MCAssembler::Finish().
|
inline |
Definition at line 128 of file MCSection.h.
|
pure virtual |
Return true if a .align directive should use "optimized nops" to fill instead of 0s.
Implemented in llvm::MCSectionELF, llvm::MCSectionMachO, llvm::MCSectionCOFF, and llvm::NVPTXSection.
|
protected |
Definition at line 104 of file MCSection.h.
Referenced by getKind().
|
protected |
Definition at line 103 of file MCSection.h.
Referenced by getVariant().
1.8.6