13#ifndef LLVM_EXECUTIONENGINE_JITLINK_COFF_H
14#define LLVM_EXECUTIONENGINE_JITLINK_COFF_H
26Expected<std::unique_ptr<LinkGraph>>
28 std::shared_ptr<orc::SymbolStringPool> SSP);
35 std::unique_ptr<JITLinkContext> Ctx);
45 : ImageBaseName(ImageBaseName) {}
47 void reset(std::optional<Symbol *> CacheValue = std::nullopt) {
48 ImageBase = CacheValue;
53 std::optional<Symbol *> ImageBase;
Represent a constant reference to a string, i.e.
GetImageBaseSymbol(StringRef ImageBaseName="__ImageBase")
void reset(std::optional< Symbol * > CacheValue=std::nullopt)
Symbol * operator()(LinkGraph &G)
Expected< std::unique_ptr< LinkGraph > > createLinkGraphFromCOFFObject(MemoryBufferRef ObjectBuffer, std::shared_ptr< orc::SymbolStringPool > SSP)
Create a LinkGraph from an COFF relocatable object.
void link_COFF(std::unique_ptr< LinkGraph > G, std::unique_ptr< JITLinkContext > Ctx)
Link the given graph.
This is an optimization pass for GlobalISel generic memory operations.