mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[ORC] Fix BuildingAJIT tutorial examples that were broken by r343059.
createLocalCompileCallbackManager now returns an Expected value. This commit wraps the call with cantFail to unwrap it. llvm-svn: 343060
This commit is contained in:
parent
fceb425485
commit
4a600aef42
@ -76,8 +76,8 @@ public:
|
|||||||
[this](std::unique_ptr<Module> M) {
|
[this](std::unique_ptr<Module> M) {
|
||||||
return optimizeModule(std::move(M));
|
return optimizeModule(std::move(M));
|
||||||
}),
|
}),
|
||||||
CompileCallbackManager(orc::createLocalCompileCallbackManager(
|
CompileCallbackManager(cantFail(orc::createLocalCompileCallbackManager(
|
||||||
TM->getTargetTriple(), ES, 0)),
|
TM->getTargetTriple(), ES, 0))),
|
||||||
CODLayer(ES, OptimizeLayer,
|
CODLayer(ES, OptimizeLayer,
|
||||||
[&](orc::VModuleKey K) { return Resolvers[K]; },
|
[&](orc::VModuleKey K) { return Resolvers[K]; },
|
||||||
[&](orc::VModuleKey K, std::shared_ptr<SymbolResolver> R) {
|
[&](orc::VModuleKey K, std::shared_ptr<SymbolResolver> R) {
|
||||||
|
@ -116,8 +116,8 @@ public:
|
|||||||
[this](std::unique_ptr<Module> M) {
|
[this](std::unique_ptr<Module> M) {
|
||||||
return optimizeModule(std::move(M));
|
return optimizeModule(std::move(M));
|
||||||
}),
|
}),
|
||||||
CompileCallbackMgr(orc::createLocalCompileCallbackManager(
|
CompileCallbackMgr(cantFail(orc::createLocalCompileCallbackManager(
|
||||||
TM->getTargetTriple(), ES, 0)) {
|
TM->getTargetTriple(), ES, 0))) {
|
||||||
auto IndirectStubsMgrBuilder =
|
auto IndirectStubsMgrBuilder =
|
||||||
orc::createLocalIndirectStubsManagerBuilder(TM->getTargetTriple());
|
orc::createLocalIndirectStubsManagerBuilder(TM->getTargetTriple());
|
||||||
IndirectStubsMgr = IndirectStubsMgrBuilder();
|
IndirectStubsMgr = IndirectStubsMgrBuilder();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user