LLVM API Documentation
#include <MCSectionMachO.h>


MCSectionMachO - This represents a section on a Mach-O system (used by Mac OS X). On a Mac system, these are also described in /usr/include/mach-o/loader.h.
Definition at line 25 of file MCSectionMachO.h.
| anonymous enum |
These are the section type and attributes fields. A MachO section can have only one Type, but can have any of the attributes specified.
Definition at line 44 of file MCSectionMachO.h.
Definition at line 183 of file MCSectionMachO.h.
References llvm::MCSection::getVariant(), and llvm::MCSection::SV_MachO.
| virtual std::string llvm::MCSectionMachO::getLabelBeginName | ( | ) | const [inline, virtual] |
Implements llvm::MCSection.
Definition at line 148 of file MCSectionMachO.h.
References getSectionName(), and getSegmentName().
| virtual std::string llvm::MCSectionMachO::getLabelEndName | ( | ) | const [inline, virtual] |
Implements llvm::MCSection.
Definition at line 152 of file MCSectionMachO.h.
References getSectionName(), and getSegmentName().
| StringRef llvm::MCSectionMachO::getSectionName | ( | ) | const [inline] |
Definition at line 141 of file MCSectionMachO.h.
Referenced by getLabelBeginName(), getLabelEndName(), PrintSwitchToSection(), and llvm::MachObjectWriter::WriteSection().
| StringRef llvm::MCSectionMachO::getSegmentName | ( | ) | const [inline] |
Definition at line 135 of file MCSectionMachO.h.
Referenced by getLabelBeginName(), getLabelEndName(), PrintSwitchToSection(), and llvm::MachObjectWriter::WriteSection().
| unsigned llvm::MCSectionMachO::getStubSize | ( | ) | const [inline] |
Definition at line 157 of file MCSectionMachO.h.
Referenced by llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), and llvm::MachObjectWriter::WriteSection().
| unsigned llvm::MCSectionMachO::getType | ( | ) | const [inline] |
Definition at line 159 of file MCSectionMachO.h.
References SECTION_TYPE.
Referenced by llvm::MachObjectWriter::BindIndirectSymbols(), isVirtualSection(), and llvm::MachObjectWriter::WriteObject().
| unsigned llvm::MCSectionMachO::getTypeAndAttributes | ( | ) | const [inline] |
Definition at line 156 of file MCSectionMachO.h.
Referenced by llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), PrintSwitchToSection(), and llvm::MachObjectWriter::WriteSection().
Definition at line 160 of file MCSectionMachO.h.
Referenced by UseCodeAlign().
| bool MCSectionMachO::isVirtualSection | ( | ) | const [virtual] |
isVirtualSection - Check whether this section is "virtual", that is has no actual object file contents.
Implements llvm::MCSection.
Definition at line 161 of file MCSectionMachO.cpp.
References getType(), S_GB_ZEROFILL, S_THREAD_LOCAL_ZEROFILL, and S_ZEROFILL.
| std::string MCSectionMachO::ParseSectionSpecifier | ( | StringRef | Spec, |
| StringRef & | Segment, | ||
| StringRef & | Section, | ||
| unsigned & | TAA, | ||
| bool & | TAAParsed, | ||
| unsigned & | StubSize | ||
| ) | [static] |
ParseSectionSpecifier - Parse the section specifier indicated by "Spec". This is a string that can appear after a .section directive in a mach-o flavored .s file. If successful, this fills in the specified Out parameters and returns an empty string. When an invalid section specifier is present, this returns a string indicating the problem. If no TAA was parsed, TAA is not altered, and TAAWasSet becomes false.
ParseSectionSpecifier - Parse the section specifier indicated by "Spec". This is a string that can appear after a .section directive in a mach-o flavored .s file. If successful, this fills in the specified Out parameters and returns an empty string. When an invalid section specifier is present, this returns a string indicating the problem.
Definition at line 180 of file MCSectionMachO.cpp.
References AssemblerName, AttrFlag, AttrFlagEnd, llvm::StringRef::empty(), llvm::StringRef::getAsInteger(), LAST_KNOWN_SECTION_TYPE, S_SYMBOL_STUBS, SECTION_TYPE, SectionAttrDescriptors, SectionTypeDescriptors, llvm::StringRef::size(), llvm::StringRef::split(), and StripSpaces().
Referenced by llvm::TargetLoweringObjectFileMachO::emitModuleFlags(), and llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal().
| void MCSectionMachO::PrintSwitchToSection | ( | const MCAsmInfo & | MAI, |
| raw_ostream & | OS, | ||
| const MCExpr * | Subsection | ||
| ) | const [virtual] |
Implements llvm::MCSection.
Definition at line 93 of file MCSectionMachO.cpp.
References AssemblerName, AttrFlag, getSectionName(), getSegmentName(), getTypeAndAttributes(), LAST_KNOWN_SECTION_TYPE, SECTION_ATTRIBUTES, SECTION_TYPE, SectionAttrDescriptors, and SectionTypeDescriptors.
| bool MCSectionMachO::UseCodeAlign | ( | ) | const [virtual] |
Implements llvm::MCSection.
Definition at line 157 of file MCSectionMachO.cpp.
References hasAttribute(), and S_ATTR_PURE_INSTRUCTIONS.
friend class MCContext [friend] |
Definition at line 39 of file MCSectionMachO.h.