diff options
Diffstat (limited to 'llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp')
| -rw-r--r-- | llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp index bb075bd56b5..ff0c18c9584 100644 --- a/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp +++ b/llvm/examples/SpeculativeJIT/SpeculativeJIT.cpp @@ -119,10 +119,7 @@ private: auto Work = [SharedMU, &JD]() { SharedMU->doMaterialize(JD); }; CompileThreads.async(std::move(Work)); }); - JITEvaluatedSymbol SpeculatorSymbol(JITTargetAddress(&S), - JITSymbolFlags::Exported); - ExitOnErr(this->ES->getMainJITDylib().define( - absoluteSymbols({{Mangle("__orc_speculator"), SpeculatorSymbol}}))); + ExitOnErr(S.addSpeculationRuntime(this->ES->getMainJITDylib(), Mangle)); LocalCXXRuntimeOverrides CXXRuntimeoverrides; ExitOnErr(CXXRuntimeoverrides.enable(this->ES->getMainJITDylib(), Mangle)); } |

