From da7f993a8d615c7306d3576f9669eb4d0a4b65f4 Mon Sep 17 00:00:00 2001 From: Lang Hames Date: Sun, 10 Oct 2021 12:56:37 -0700 Subject: [ORC] Reorder callWrapperAsync and callSPSWrapperAsync parameters. The callee address is now the first parameter and the 'SendResult' function the second. This change improves consistentency with the non-async functions where the callee is the first address and the return value the second. --- llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp') diff --git a/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp b/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp index 2262afe..dd57fbd 100644 --- a/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp +++ b/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp @@ -109,8 +109,8 @@ SelfExecutorProcessControl::runAsMain(ExecutorAddr MainFnAddr, return orc::runAsMain(MainFnAddr.toPtr(), Args); } -void SelfExecutorProcessControl::callWrapperAsync(SendResultFunction SendResult, - ExecutorAddr WrapperFnAddr, +void SelfExecutorProcessControl::callWrapperAsync(ExecutorAddr WrapperFnAddr, + SendResultFunction SendResult, ArrayRef ArgBuffer) { using WrapperFnTy = shared::detail::CWrapperFunctionResult (*)(const char *Data, size_t Size); -- cgit v1.1