[llvm] r368764 - [ORC] Fix SpeculativeJIT example code broken by r368707.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 13 15:44:54 PDT 2019


Author: lhames
Date: Tue Aug 13 15:44:54 2019
New Revision: 368764

URL: http://llvm.org/viewvc/llvm-project?rev=368764&view=rev
Log:
[ORC] Fix SpeculativeJIT example code broken by r368707.

Modified:
    llvm/trunk/examples/SpeculativeJIT/SpeculativeJIT.cpp

Modified: llvm/trunk/examples/SpeculativeJIT/SpeculativeJIT.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/examples/SpeculativeJIT/SpeculativeJIT.cpp?rev=368764&r1=368763&r2=368764&view=diff
==============================================================================
--- llvm/trunk/examples/SpeculativeJIT/SpeculativeJIT.cpp (original)
+++ llvm/trunk/examples/SpeculativeJIT/SpeculativeJIT.cpp Tue Aug 13 15:44:54 2019
@@ -95,11 +95,12 @@ private:
     exit(1);
   }
 
-  SpeculativeJIT(std::unique_ptr<ExecutionSession> ES, DataLayout DL,
-                 orc::JITTargetMachineBuilder JTMB,
-                 std::unique_ptr<LazyCallThroughManager> LCTMgr,
-                 IndirectStubsManagerBuilderFunction ISMBuilder,
-                 DynamicLibrarySearchGenerator ProcessSymbolsGenerator)
+  SpeculativeJIT(
+      std::unique_ptr<ExecutionSession> ES, DataLayout DL,
+      orc::JITTargetMachineBuilder JTMB,
+      std::unique_ptr<LazyCallThroughManager> LCTMgr,
+      IndirectStubsManagerBuilderFunction ISMBuilder,
+      std::unique_ptr<DynamicLibrarySearchGenerator> ProcessSymbolsGenerator)
       : ES(std::move(ES)), DL(std::move(DL)), LCTMgr(std::move(LCTMgr)),
         CompileLayer(*this->ES, ObjLayer,
                      ConcurrentIRCompiler(std::move(JTMB))),
@@ -107,7 +108,7 @@ private:
         SpeculateLayer(*this->ES, CompileLayer, S, BlockFreqQuery()),
         CODLayer(*this->ES, SpeculateLayer, *this->LCTMgr,
                  std::move(ISMBuilder)) {
-    this->ES->getMainJITDylib().setGenerator(
+    this->ES->getMainJITDylib().addGenerator(
         std::move(ProcessSymbolsGenerator));
     this->CODLayer.setImplMap(&Imps);
     this->ES->setDispatchMaterialization(




More information about the llvm-commits mailing list