llvm.org GIT mirror llvm / 97225a8
[ORC] Fix SpeculativeJIT example code broken by r368707. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368764 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 2 months ago
1 changed file(s) with 7 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
9494 exit(1);
9595 }
9696
97 SpeculativeJIT(std::unique_ptr ES, DataLayout DL,
98 orc::JITTargetMachineBuilder JTMB,
99 std::unique_ptr LCTMgr,
100 IndirectStubsManagerBuilderFunction ISMBuilder,
101 DynamicLibrarySearchGenerator ProcessSymbolsGenerator)
97 SpeculativeJIT(
98 std::unique_ptr ES, DataLayout DL,
99 orc::JITTargetMachineBuilder JTMB,
100 std::unique_ptr LCTMgr,
101 IndirectStubsManagerBuilderFunction ISMBuilder,
102 std::unique_ptr ProcessSymbolsGenerator)
102103 : ES(std::move(ES)), DL(std::move(DL)), LCTMgr(std::move(LCTMgr)),
103104 CompileLayer(*this->ES, ObjLayer,
104105 ConcurrentIRCompiler(std::move(JTMB))),
106107 SpeculateLayer(*this->ES, CompileLayer, S, BlockFreqQuery()),
107108 CODLayer(*this->ES, SpeculateLayer, *this->LCTMgr,
108109 std::move(ISMBuilder)) {
109 this->ES->getMainJITDylib().setGenerator(
110 this->ES->getMainJITDylib().addGenerator(
110111 std::move(ProcessSymbolsGenerator));
111112 this->CODLayer.setImplMap(&Imps);
112113 this->ES->setDispatchMaterialization(