LLVM 22.0.0git
MachO.h File Reference

Go to the source code of this file.

Namespaces

namespace  llvm
 This is an optimization pass for GlobalISel generic memory operations.

Functions

LLVM_ABI Expected< std::unique_ptr< LinkGraph > > llvm::jitlink::createLinkGraphFromMachOObject (MemoryBufferRef ObjectBuffer, std::shared_ptr< orc::SymbolStringPool > SSP)
 Create a LinkGraph from a MachO relocatable object.
LLVM_ABI void llvm::jitlink::link_MachO (std::unique_ptr< LinkGraph > G, std::unique_ptr< JITLinkContext > Ctx)
 jit-link the given ObjBuffer, which must be a MachO object file.
Sectionllvm::jitlink::getMachODefaultRWDataSection (LinkGraph &G)
 Get a pointer to the standard MachO data section (creates an empty section with RW- permissions and standard lifetime if one does not already exist).
Sectionllvm::jitlink::getMachODefaultTextSection (LinkGraph &G)
 Get a pointer to the standard MachO text section (creates an empty section with R-X permissions and standard lifetime if one does not already exist).
LLVM_ABI Expected< Symbol & > llvm::jitlink::getOrCreateLocalMachOHeader (LinkGraph &G)
 Gets or creates a MachO header for the current LinkGraph.