class MCSectionMachO

Declaration

class MCSectionMachO : public MCSection { /* full declaration omitted */ };

Description

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.

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:24

Inherits from: MCSection

Member Variables

Inherited from MCSection:

protected Variant
protected Kind

Method Overview

Inherited from MCSection:

Methods

static std::string ParseSectionSpecifier(
    llvm::StringRef Spec,
    llvm::StringRef& Segment,
    llvm::StringRef& Section,
    unsigned int& TAA,
    bool& TAAParsed,
    unsigned int& StubSize)

Description

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.

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:71

Parameters

llvm::StringRef Spec
llvm::StringRef& Segment
llvm::StringRef& Section
unsigned int& TAA
bool& TAAParsed
unsigned int& StubSize

void PrintSwitchToSection(
    const llvm::MCAsmInfo& MAI,
    const llvm::Triple& T,
    llvm::raw_ostream& OS,
    const llvm::MCExpr* Subsection) const

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:78

Parameters

const llvm::MCAsmInfo& MAI
const llvm::Triple& T
llvm::raw_ostream& OS
const llvm::MCExpr* Subsection

bool UseCodeAlign() const

Description

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

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:81

static bool classof(const llvm::MCSection* S)

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:84

Parameters

const llvm::MCSection* S

llvm::StringRef getSectionName() const

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:47

llvm::StringRef getSegmentName() const

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:41

unsigned int getStubSize() const

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:55

MachO::SectionType getType() const

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:57

unsigned int getTypeAndAttributes() const

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:54

bool hasAttribute(unsigned int Value) const

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:61

Parameters

unsigned int Value

bool isVirtualSection() const

Description

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

Declared at: llvm/include/llvm/MC/MCSectionMachO.h:82