13#ifndef LLVM_EXECUTIONENGINE_JITLINK_MACHO_H
14#define LLVM_EXECUTIONENGINE_JITLINK_MACHO_H
27Expected<std::unique_ptr<LinkGraph>>
29 std::shared_ptr<orc::SymbolStringPool> SSP);
36 std::unique_ptr<JITLinkContext> Ctx);
Represents an object file section.
Section & getMachODefaultTextSection(LinkGraph &G)
Get a pointer to the standard MachO text section (creates an empty section with R-X permissions and s...
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...
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.
StringRef MachODataDataSectionName
StringRef MachOTextTextSectionName
This is an optimization pass for GlobalISel generic memory operations.