mirror of
https://github.com/RPCS3/llvm.git
synced 2026-01-31 01:25:19 +01:00
[ORC] Fix SpeculativeJIT example code broken by r368707.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368764 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user