diff options
author | Lang Hames <lhames@gmail.com> | 2019-08-13 22:44:54 +0000 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2019-08-13 22:44:54 +0000 |
commit | 810b574d772a06c7799ea8a7aa5c071e8f879616 (patch) | |
tree | 3facdce348c9eb6af2783ad08224b61a0ce66ccf | |
parent | cc0f0582c8b61bcb65531716e0a78704bdd283d6 (diff) | |
download | bcm5719-llvm-810b574d772a06c7799ea8a7aa5c071e8f879616.tar.gz bcm5719-llvm-810b574d772a06c7799ea8a7aa5c071e8f879616.zip |
[ORC] Fix SpeculativeJIT example code broken by r368707.
llvm-svn: 368764
-rw-r--r-- | llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp index 147144a32e9..219018001de 100644 --- a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp +++ b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp @@ -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( |