1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

[ORC] Fix SpeculativeJIT example code broken by r368707.

llvm-svn: 368764
This commit is contained in:
Lang Hames 2019-08-13 22:44:54 +00:00
parent d09bc24891
commit 8673c314b4

View File

@ -95,11 +95,12 @@ private:
exit(1);
}
SpeculativeJIT(std::unique_ptr<ExecutionSession> ES, DataLayout DL,
SpeculativeJIT(
std::unique_ptr<ExecutionSession> ES, DataLayout DL,
orc::JITTargetMachineBuilder JTMB,
std::unique_ptr<LazyCallThroughManager> LCTMgr,
IndirectStubsManagerBuilderFunction ISMBuilder,
DynamicLibrarySearchGenerator ProcessSymbolsGenerator)
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(