[llvm] 2e6c92c - [examples] Fix LLJITWithRemoteDebugging example after f3411616896.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Sun Oct 10 20:26:28 PDT 2021
Author: Lang Hames
Date: 2021-10-10T20:25:44-07:00
New Revision: 2e6c92c5400e46e1b27033107560ed67ac25062d
URL: https://github.com/llvm/llvm-project/commit/2e6c92c5400e46e1b27033107560ed67ac25062d
DIFF: https://github.com/llvm/llvm-project/commit/2e6c92c5400e46e1b27033107560ed67ac25062d.diff
LOG: [examples] Fix LLJITWithRemoteDebugging example after f3411616896.
Added:
Modified:
llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
Removed:
################################################################################
diff --git a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
index a697c32cbd541..6a535bed9a81a 100644
--- a/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
+++ b/llvm/examples/OrcV2Examples/LLJITWithRemoteDebugging/RemoteJITUtils.cpp
@@ -139,6 +139,7 @@ launchLocalExecutor(StringRef ExecutablePath) {
close(FromExecutor[WriteEnd]);
auto EPC = SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(
+ std::make_unique<DynamicThreadPoolTaskDispatcher>(),
FromExecutor[ReadEnd], ToExecutor[WriteEnd]);
if (!EPC)
return EPC.takeError();
@@ -208,7 +209,8 @@ connectTCPSocket(StringRef NetworkAddress) {
if (!SockFD)
return CreateErr(toString(SockFD.takeError()));
- return SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(*SockFD);
+ return SimpleRemoteEPC::Create<FDSimpleRemoteEPCTransport>(
+ std::make_unique<DynamicThreadPoolTaskDispatcher>(), *SockFD);
}
#endif
More information about the llvm-commits
mailing list