Object‐file lowering for Mach‐O targets.
Synopsis
Declared in <llvm/CodeGen/TargetLoweringObjectFileImpl.h>
class TargetLoweringObjectFileMachO
: public TargetLoweringObjectFile
Base Classes
Name |
Description |
Target‐specific lowering of globals and constants into object‐file sections. |
Member Functions
Name |
Description |
|
Construct a Mach‐O object‐file lowering instance. |
|
Destroy this Mach‐O object‐file lowering instance. |
|
Deleted copy assignment; instances are not copyable. |
|
|
Compute the section used to emit a defined global object or function. |
|
|
Select the default Mach‐O section for |
Emit Call Graph Profile metadata. |
|
|
Emit Mach‐O linker directives derived from module metadata. |
|
Emit the module flags that specify the garbage collection information. |
|
Emit the personality‐routine value into the object file if required. |
Emit pseudo_probe_desc metadata. |
|
Return the GOFF associated data area section. |
|
Return the address‐significance table section. |
|
Return the basic‐block address map section for |
|
Return the BSS section. |
|
|
Return the symbol passed to |
Return the COFF CodeView debug symbols section. |
|
Return the COFF CodeView debug types section. |
|
Return the COFF global type hashes section. |
|
Return the Mach‐O C‐string literal section. |
|
Return the call‐graph metadata section for |
|
Return the DWARF encoding used for call‐site entries. |
|
Return the compact‐unwind encoding that means emit only an EH frame. |
|
Return the compact unwind section. |
|
Return the Mach‐O coalesced constant data section. |
|
Return the Mach‐O constant data section. |
|
Return the Mach‐O coalesced constant text section. |
|
Return the MC context associated with this object‐file info. |
|
Return the Mach‐O BSS data section. |
|
Return the Mach‐O coalesced data section. |
|
Return the Mach‐O common data section. |
|
Return the standard data section. |
|
|
Create a symbol reference to describe the given TLS variable when emitting the address in debug info. |
Return the COFF linker directives section. |
|
Return the DWARF address‐range section. |
|
Return the fission DWARF abbreviation section. |
|
Return the DWARF abbreviation section. |
|
Return the Apple‐style names accelerator table section. |
|
Return the Apple‐style namespace accelerator table section. |
|
Return the Apple‐style Objective‐C accelerator table section. |
|
Return the Apple‐style types accelerator table section. |
|
Return the DWARF v5 address table section. |
|
Return the DWARF package CU index section. |
|
Return the legacy DWARF inline debug info section. |
|
Return the DWARF v5 |
|
Return the DWARF frame section. |
|
Return the GNU‐style DWARF public names section. |
|
Return the GNU‐style DWARF public types section. |
|
Return the fission DWARF info section. |
|
|
|
Return the fission DWARF line section. |
|
Return the DWARF line section. |
|
Return the DWARF line‐string section. |
|
Return the fission DWARF location list section. |
|
Return the DWARF location list section. |
|
Return the fission DWARF v5 location list section. |
|
Return the DWARF v5 location list section. |
|
Return the fission DWARF macinfo section. |
|
Return the DWARF macinfo section. |
|
Return the fission DWARF macro section. |
|
Return the DWARF macro section. |
|
Return the DWARF public names section. |
|
Return the DWARF public types section. |
|
Return the DWARF ranges section. |
|
Return the fission DWARF v5 range list section. |
|
Return the DWARF v5 range list section. |
|
Return the fission DWARF string section. |
|
Return the fission DWARF string‐offset section. |
|
Return the DWARF v5 string‐offset section. |
|
Return the DWARF string section. |
|
Return the Swift AST debug section. |
|
Return the DWARF package TU index section. |
|
Return the fission DWARF types section. |
|
Return the DWARF types COMDAT section for the given hash. |
|
Return the EH frame section. |
|
Return the Mach‐O 8‐byte constant section. |
|
|
Return the Mach‐O section named by an explicit section attribute on |
Return the FDE CFI encoding used for |
|
Return the fault map section. |
|
Return the Mach‐O 4‐byte constant section. |
|
|
If supported, return the function entry point symbol. Otherwise, returns nullptr. Func must be a function or an alias which has a function as base object. |
Return the COFF guard EH continuation table section. |
|
Return the COFF guard function ID table section. |
|
Return the COFF guard address‐taken IAT entries section. |
|
Return the COFF guard longjmp table section. |
|
Return the GOFF IDRL section. |
|
Return the import‐call optimization data section. |
|
|
Get MachO PC relative GOT entry relocation. |
|
Get the target specific RWPI relocation. |
Return the KCFI trap section for |
|
Return the LLVM statistics metadata section. |
|
Return the DWARF encoding used for LSDA references. |
|
Return the language‐specific data area (LSDA) section. |
|
Return the Mach‐O lazy symbol pointer section. |
|
Return the mangler used for global names. |
|
|
Get the module‐level metadata that the platform cares about. |
|
Append the Mach‐O mangled name of |
Return the Mach‐O non‐lazy symbol pointer section. |
|
True if DWARF unwind may be omitted when compact unwind is available. |
|
Return or create a PC‐relative metadata section named |
|
Return the COFF procedure data section. |
|
Return the GOFF PPA2 list section. |
|
Return the DWARF encoding used for personality routine references. |
|
Return the AutoFDO pseudo‐probe descriptor section for a function. |
|
Return the AutoFDO pseudo‐probe section for |
|
Return the read‐only data section. |
|
Return the remarks section. |
|
Return the optional SFrame ABI architecture identifier. |
|
Return the SFrame section. |
|
Return the COFF safe exception handlers data section. |
|
|
Return the Mach‐O section used for |
|
|
|
On targets that associate external references with a section, return such a section for the given external global. |
|
On targets that use separate function descriptor symbols, return a section for the descriptor given its symbol. Use only with defined functions. |
|
|
|
Return the section used to emit the LSDA for the given function. |
|
Return the section used to emit the given machine basic block. |
|
On targets that support TOC entries, return a section for the entry given the symbol it refers to. TODO: Implement this interface for existing ELF targets. |
Return the Mach‐O 16‐byte constant section. |
|
Return the stack map section. |
|
Return the stack‐sizes metadata section for |
|
|
Returns the register used as static base in RWPI variants. |
|
Return the section used for static constructors at |
|
Return the Mach‐O section for static destructors at |
True if compact unwind can be emitted without an EH frame section. |
|
Return the Swift 5 reflection section for |
|
Return the MCSymbol for a private symbol with global value name as its base, with the specified suffix. |
|
Return the thread‐local BSS section. |
|
Return the thread‐local initialized data section. |
|
Return the extra TLS variable data section. |
|
Return the Mach‐O thread‐local variable structure section. |
|
Return the Mach‐O TLS thread‐init function section. |
|
Return the XCOFF TOC base section. |
|
Return the DWARF encoding used for type references. |
|
|
The mach‐o version of this method defaults to returning a stub reference. |
Build an MCExpr that references |
|
|
Targets that have a special convention for their symbols could use this hook to return a specialized symbol. |
Return the Mach‐O coalesced text section. |
|
Return the standard text section. |
|
|
Return the preferred alignment in bytes for the text section. |
Return the Mach‐O thread‐local pointer section. |
|
Return the Mach‐O UTF‐16 string literal section. |
|
|
Return a unique section for the given function when function sections are enabled. |
Return the COFF unwind data section. |
|
Target supports a PC‐relative relocation that references the PLT of a function. |
|
Initialize object‐file section info for the given context and code model. |
|
True if the object file is being built for position‐independent code. |
|
|
Lower a dso_local equivalent reference to a target MCExpr. |
|
Lower a relative reference between two globals to a target MCExpr. |
|
Return true if the jump table for |
Target supports TLS offset relocation in debug section? |
|
Target GOT "PC"‐relative relocation supports encoding an additional binary expression with an offset? |
|
Target supports replacing a data "PC"‐relative access to a symbol through another symbol, by accessing the later via a GOT entry instead? |
Static Member Functions
Name |
Description |
Return the section name specified by '#pragma clang section' or the section attribute. |
|
Classify the specified global variable into a set of target independent categories embodied in SectionKind. |
Protected Member Functions
Name |
Description |
|
Select the section used to emit |
Protected Data Members
Name |
Description |
GOFF associated data area (ADA) section. |
|
Address‐significance table section. |
|
Section that is default initialized to zero. |
|
COFF CodeView debug symbols section. |
|
COFF CodeView debug types section. |
|
COFF global type hashes section. |
|
Mach‐O C‐string literal section. |
|
Section containing call graph metadata. |
|
DWARF encoding used for call‐site entries in exception handling. |
|
Compact unwind encoding indicating that we should emit only an EH frame. |
|
If exception handling is supported by the target and the target can support a compact representation of the CIE and FDE, this is the section to emit them into. |
|
Mach‐O coalesced constant data section. |
|
Mach‐O constant data section. |
|
Mach‐O coalesced constant text section. |
|
Mach‐O BSS data section. |
|
Mach‐O coalesced data section. |
|
Mach‐O common data section. |
|
ELF section for read‐only data that needs dynamic relocations. |
|
Section directive for standard data. |
|
COFF linker directives section ( |
|
DWARF address‐range section ( |
|
Fission (DWO) DWARF abbreviation section ( |
|
DWARF abbreviation section ( |
|
Pre‐DWARF v5 Apple‐style names accelerator table section. |
|
Pre‐DWARF v5 Apple‐style namespace accelerator table section. |
|
Pre‐DWARF v5 Apple‐style Objective‐C accelerator table section. |
|
Pre‐DWARF v5 Apple‐style types accelerator table section. |
|
DWARF v5 address table section ( |
|
DWARF package CU index section ( |
|
Legacy DWARF inline debug info section. |
|
DWARF v5 accelerator table section ( |
|
DWARF call‐frame information section ( |
|
Section for newer gnu pubnames. |
|
Section for newer gnu pubtypes. |
|
Fission (DWO) DWARF info section ( |
|
DWARF compilation‐unit info section ( |
|
Fission (DWO) DWARF line section ( |
|
DWARF line‐number program section ( |
|
DWARF line‐string section ( |
|
Fission (DWO) DWARF location list section ( |
|
DWARF location list section ( |
|
Fission (DWO) DWARF v5 location list section ( |
|
The DWARF v5 locations list section. |
|
Fission (DWO) DWARF macinfo section ( |
|
DWARF macinfo section ( |
|
Fission (DWO) DWARF macro section ( |
|
DWARF macro section ( |
|
DWARF public names section ( |
|
DWARF public types section ( |
|
DWARF range list section ( |
|
The DWARF v5 range and location list sections for fission. |
|
The DWARF v5 range list section. |
|
Fission (DWO) DWARF string section ( |
|
Fission (DWO) DWARF string‐offset section ( |
|
The DWARF v5 string offset and address table sections. |
|
DWARF string section ( |
|
Section holding serialized Swift AST debug data. |
|
DWARF package TU index section ( |
|
Fission (DWO) DWARF types section ( |
|
EH frame section. |
|
Mach‐O 8‐byte constant section. |
|
Encoding used for FDE CFI begin labels in |
|
FaultMap section. |
|
Mach‐O 4‐byte constant section. |
|
COFF guard EH continuation table section. |
|
COFF guard function ID table section. |
|
COFF guard address‐taken IAT entries section. |
|
COFF guard longjmp table section. |
|
GOFF IDRL section. |
|
If import call optimization is supported by the target, this is the section to emit import call data to. |
|
Section holding LLVM statistics metadata. |
|
DWARF encoding used for the language‐specific data area (LSDA). |
|
If exception handling is supported by the target, this is the section the Language Specific Data Area information is emitted to. |
|
Mach‐O lazy symbol pointer section. |
|
ELF mergeable 16‐byte constant section. |
|
ELF mergeable 32‐byte constant section. |
|
ELF mergeable 4‐byte constant section. |
|
ELF mergeable 8‐byte constant section. |
|
Mach‐O non‐lazy symbol pointer section. |
|
OmitDwarfIfHaveCompactUnwind ‐ True if the target object file supports having some functions with compact unwind and other with dwarf unwind. |
|
COFF exception procedure data section ( |
|
Specifier used for PC‐relative PLT references when supported. |
|
GOFF PPA2 list section. |
|
DWARF encoding used for the personality routine reference. |
|
Section describing AutoFDO pseudo‐probe function descriptors. |
|
Section for pseudo probe information used by AutoFDO |
|
XCOFF 16‐byte read‐only section. |
|
XCOFF 8‐byte read‐only section. |
|
Readonly section for arbitrary initialized data. |
|
Remarks section. |
|
SFrame ABI architecture byte. |
|
SFrame section. |
|
COFF safe exception handlers data section ( |
|
Mach‐O 16‐byte constant section. |
|
StackMap section. |
|
Section containing metadata on function stack sizes. |
|
This section contains the static constructor pointer list. |
|
This section contains the static destructor pointer list. |
|
True if the target supports TLS offset relocation in debug sections. |
|
True if GOT PC‐relative relocations may encode an added offset. |
|
True if the target can replace a PC‐relative data access via GOT. |
|
True if the target object file supports emitting a compact unwind section without an associated EH frame section. |
|
Swift 5 reflection metadata sections, indexed by section kind. |
|
Section directive for Thread Local uninitialized data. |
|
Section directive for Thread Local data. ELF, MachO, COFF, and Wasm. |
|
Extra TLS Variable Data section. |
|
Section for thread local structure information. |
|
Section for thread local data initialization functions. |
|
Target machine associated with this object‐file lowering instance. |
|
XCOFF TOC base section. |
|
DWARF encoding used for type references in exception handling. |
|
Mach‐O coalesced text section. |
|
Section directive for standard text. |
|
Mach‐O thread‐local pointer section. |
|
Mach‐O UTF‐16 string literal section. |
|
COFF exception unwind data section ( |
Created with MrDocs