summaryrefslogtreecommitdiff
path: root/llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2023-06-07 10:16:14 -0700
committerLang Hames <lhames@gmail.com>2023-06-07 16:28:07 -0700
commitd120d77f72fe161f1522d698ea268be2dad318cb (patch)
treea9431edae65e766672c8bc67599fa327e9ea564e /llvm/examples/OrcV2Examples/LLJITWithExecutorProcessControl/LLJITWithExecutorProcessControl.cpp
parent5a053842a1f2d6a775d347ab937fb70a0715d7f4 (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.cpp3
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(