[ORC] Fix examples after cd585864c0b.
cd585864c0b added a MemoryBuffer argument to the memory manager factory. This patch updates the examples to reflect that change.
This commit is contained in:
parent
2a8c7d3c69
commit
ea709c7dcd
@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
|
||||
ExitOnErr(LLJITBuilder()
|
||||
.setJITTargetMachineBuilder(std::move(JTMB))
|
||||
.setObjectLinkingLayerCreator([&](ExecutionSession &ES) {
|
||||
auto GetMemMgr = []() {
|
||||
auto GetMemMgr = [](const MemoryBuffer &) {
|
||||
return std::make_unique<SectionMemoryManager>();
|
||||
};
|
||||
auto ObjLinkingLayer =
|
||||
|
||||
@ -125,7 +125,8 @@ private:
|
||||
ExitOnErr(CXXRuntimeoverrides.enable(MainJD, Mangle));
|
||||
}
|
||||
|
||||
static std::unique_ptr<SectionMemoryManager> createMemMgr() {
|
||||
static std::unique_ptr<SectionMemoryManager>
|
||||
createMemMgr(const MemoryBuffer &) {
|
||||
return std::make_unique<SectionMemoryManager>();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user