13#ifndef LLVM_EXECUTIONENGINE_JITLINK_MACHO_H
14#define LLVM_EXECUTIONENGINE_JITLINK_MACHO_H
28LLVM_ABI Expected<std::unique_ptr<LinkGraph>>
30 std::shared_ptr<orc::SymbolStringPool> SSP);
37 std::unique_ptr<JITLinkContext> Ctx);
Tagged union holding either a T or a Error.
Represents an object file section.
LLVM_ABI Expected< Symbol & > getOrCreateLocalMachOHeader(LinkGraph &G)
Gets or creates a MachO header for the current LinkGraph.
Section & getMachODefaultTextSection(LinkGraph &G)
Get a pointer to the standard MachO text section (creates an empty section with R-X permissions and s...
LLVM_ABI Expected< std::unique_ptr< LinkGraph > > createLinkGraphFromMachOObject(MemoryBufferRef ObjectBuffer, std::shared_ptr< orc::SymbolStringPool > SSP)
Create a LinkGraph from a MachO relocatable object.
Section & getMachODefaultRWDataSection(LinkGraph &G)
Get a pointer to the standard MachO data section (creates an empty section with RW- permissions and s...
LLVM_ABI void link_MachO(std::unique_ptr< LinkGraph > G, std::unique_ptr< JITLinkContext > Ctx)
jit-link the given ObjBuffer, which must be a MachO object file.
LLVM_ABI StringRef MachODataDataSectionName
LLVM_ABI StringRef MachOTextTextSectionName
This is an optimization pass for GlobalISel generic memory operations.