llvm.org GIT mirror llvm / cd626d1
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343060 91177308-0d34-0410-b5e6-96231b3b80d8 Lang Hames 9 months ago
2 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
7575 [this](std::unique_ptr M) {
7676 return optimizeModule(std::move(M));
7777 }),
78 CompileCallbackManager(orc::createLocalCompileCallbackManager(
79 TM->getTargetTriple(), ES, 0)),
78 CompileCallbackManager(cantFail(orc::createLocalCompileCallbackManager(
79 TM->getTargetTriple(), ES, 0))),
8080 CODLayer(ES, OptimizeLayer,
8181 [&](orc::VModuleKey K) { return Resolvers[K]; },
8282 [&](orc::VModuleKey K, std::shared_ptr R) {
115115 [this](std::unique_ptr M) {
116116 return optimizeModule(std::move(M));
117117 }),
118 CompileCallbackMgr(orc::createLocalCompileCallbackManager(
119 TM->getTargetTriple(), ES, 0)) {
118 CompileCallbackMgr(cantFail(orc::createLocalCompileCallbackManager(
119 TM->getTargetTriple(), ES, 0))) {
120120 auto IndirectStubsMgrBuilder =
121121 orc::createLocalIndirectStubsManagerBuilder(TM->getTargetTriple());
122122 IndirectStubsMgr = IndirectStubsMgrBuilder();