diff options
| author | Lang Hames <lhames@gmail.com> | 2023-06-07 10:16:14 -0700 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2023-06-07 16:28:07 -0700 |
| commit | d120d77f72fe161f1522d698ea268be2dad318cb (patch) | |
| tree | a9431edae65e766672c8bc67599fa327e9ea564e /llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp | |
| parent | 5a053842a1f2d6a775d347ab937fb70a0715d7f4 (diff) | |
[ORC] Simplify construction of EPCIndirectionUtils.
ExecutionSessions always have an ExecutorProcessControl object now, so we can
construct EPCIndirectionUtil objects directly from an ExecutionSession.
Diffstat (limited to 'llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp')
| -rw-r--r-- | llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
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( |
