LLVM 22.0.0git
|
This represents a section on a Mach-O system (used by Mac OS X). More...
#include "llvm/MC/MCSectionMachO.h"
Static Public Member Functions | |
static Error | ParseSectionSpecifier (StringRef Spec, StringRef &Segment, StringRef &Section, unsigned &TAA, bool &TAAParsed, unsigned &StubSize) |
Parse the section specifier indicated by "Spec". | |
Friends | |
class | MCContext |
class | MCAsmInfoDarwin |
Additional Inherited Members | |
![]() | |
friend | MCAssembler |
friend | MCObjectStreamer |
![]() | |
static constexpr unsigned | NonUniqueID = ~0U |
![]() | |
MCSection (StringRef Name, bool IsText, bool IsBss, MCSymbol *Begin) | |
![]() | |
StringRef | Name |
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.
void MCSectionMachO::allocAtoms | ( | ) |
Definition at line 288 of file MCSectionMachO.cpp.
References llvm::MCSection::curFragList().
Definition at line 294 of file MCSectionMachO.cpp.
References I.
|
inline |
Definition at line 84 of file MCSectionMachO.h.
|
inline |
Definition at line 49 of file MCSectionMachO.h.
Referenced by canUseLocalRelocation(), llvm::MCAsmInfoDarwin::isSectionAtomizableBySymbols(), and llvm::MachObjectWriter::writeSection().
|
inline |
Definition at line 57 of file MCSectionMachO.h.
Referenced by llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal(), and llvm::MachObjectWriter::writeSection().
|
inline |
Definition at line 59 of file MCSectionMachO.h.
Referenced by canUseLocalRelocation(), and llvm::MCAsmInfoDarwin::isSectionAtomizableBySymbols().
|
inline |
Definition at line 56 of file MCSectionMachO.h.
Referenced by llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal().
Definition at line 63 of file MCSectionMachO.h.
|
static |
Parse the section specifier indicated by "Spec".
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 an Error indicating the problem. If no TAA was parsed, TAA is not altered, and TAAWasSet becomes false.
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 179 of file MCSectionMachO.cpp.
References llvm::createStringError(), llvm::StringRef::empty(), llvm::find_if(), llvm::StringRef::getAsInteger(), Idx, llvm::inconvertibleErrorCode(), llvm::MachO::S_SYMBOL_STUBS, llvm::MachO::SECTION_TYPE, SectionAttrDescriptors, SectionTypeDescriptors, llvm::SmallVectorBase< Size_T >::size(), and llvm::Error::success().
Referenced by llvm::TargetLoweringObjectFileMachO::emitModuleMetadata(), and llvm::TargetLoweringObjectFileMachO::getExplicitSectionGlobal().
Definition at line 298 of file MCSectionMachO.cpp.
|
inline |
Definition at line 85 of file MCSectionMachO.h.
|
friend |
Definition at line 27 of file MCSectionMachO.h.
|
friend |
Definition at line 26 of file MCSectionMachO.h.