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:
parent
d09bc24891
commit
8673c314b4
@ -95,11 +95,12 @@ private:
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
SpeculativeJIT(std::unique_ptr<ExecutionSession> ES, DataLayout DL,
|
SpeculativeJIT(
|
||||||
orc::JITTargetMachineBuilder JTMB,
|
std::unique_ptr<ExecutionSession> ES, DataLayout DL,
|
||||||
std::unique_ptr<LazyCallThroughManager> LCTMgr,
|
orc::JITTargetMachineBuilder JTMB,
|
||||||
IndirectStubsManagerBuilderFunction ISMBuilder,
|
std::unique_ptr<LazyCallThroughManager> LCTMgr,
|
||||||
DynamicLibrarySearchGenerator ProcessSymbolsGenerator)
|
IndirectStubsManagerBuilderFunction ISMBuilder,
|
||||||
|
std::unique_ptr<DynamicLibrarySearchGenerator> ProcessSymbolsGenerator)
|
||||||
: ES(std::move(ES)), DL(std::move(DL)), LCTMgr(std::move(LCTMgr)),
|
: ES(std::move(ES)), DL(std::move(DL)), LCTMgr(std::move(LCTMgr)),
|
||||||
CompileLayer(*this->ES, ObjLayer,
|
CompileLayer(*this->ES, ObjLayer,
|
||||||
ConcurrentIRCompiler(std::move(JTMB))),
|
ConcurrentIRCompiler(std::move(JTMB))),
|
||||||
@ -107,7 +108,7 @@ private:
|
|||||||
SpeculateLayer(*this->ES, CompileLayer, S, BlockFreqQuery()),
|
SpeculateLayer(*this->ES, CompileLayer, S, BlockFreqQuery()),
|
||||||
CODLayer(*this->ES, SpeculateLayer, *this->LCTMgr,
|
CODLayer(*this->ES, SpeculateLayer, *this->LCTMgr,
|
||||||
std::move(ISMBuilder)) {
|
std::move(ISMBuilder)) {
|
||||||
this->ES->getMainJITDylib().setGenerator(
|
this->ES->getMainJITDylib().addGenerator(
|
||||||
std::move(ProcessSymbolsGenerator));
|
std::move(ProcessSymbolsGenerator));
|
||||||
this->CODLayer.setImplMap(&Imps);
|
this->CODLayer.setImplMap(&Imps);
|
||||||
this->ES->setDispatchMaterialization(
|
this->ES->setDispatchMaterialization(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user