From d120d77f72fe161f1522d698ea268be2dad318cb Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Wed, 7 Jun 2023 10:16:14 -0700 Subject: [ORC] Simplify construction of EPCIndirectionUtils. ExecutionSessions always have an ExecutorProcessControl object now, so we can construct EPCIndirectionUtil objects directly from an ExecutionSession. --- .../LLJITWithExecutorProcessControl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp') diff --git a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp index 8d2ac3261e39..a219cab6e2f7 100644 --- a/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp +++ b/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp @@ -144,8 +144,7 @@ int main(int argc, char *argv[]) { }); // (3) Create stubs and call-through managers: - auto EPCIU = ExitOnErr(EPCIndirectionUtils::Create( - J->getExecutionSession().getExecutorProcessControl())); + auto EPCIU = ExitOnErr(EPCIndirectionUtils::Create(J->getExecutionSession())); ExitOnErr(EPCIU->writeResolverBlock(ExecutorAddr::fromPtr(&reenter), ExecutorAddr::fromPtr(EPCIU.get()))); EPCIU->createLazyCallThroughManager( -- cgit v1.2.3