diff options
Diffstat (limited to 'llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp b/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp index c138ea3..2262afe 100644 --- a/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp +++ b/llvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp @@ -103,18 +103,18 @@ SelfExecutorProcessControl::lookupSymbols(ArrayRef<LookupRequest> Request) { } Expected<int32_t> -SelfExecutorProcessControl::runAsMain(JITTargetAddress MainFnAddr, +SelfExecutorProcessControl::runAsMain(ExecutorAddr MainFnAddr, ArrayRef<std::string> Args) { using MainTy = int (*)(int, char *[]); - return orc::runAsMain(jitTargetAddressToFunction<MainTy>(MainFnAddr), Args); + return orc::runAsMain(MainFnAddr.toPtr<MainTy>(), Args); } -void SelfExecutorProcessControl::callWrapperAsync( - SendResultFunction SendResult, JITTargetAddress WrapperFnAddr, - ArrayRef<char> ArgBuffer) { +void SelfExecutorProcessControl::callWrapperAsync(SendResultFunction SendResult, + ExecutorAddr WrapperFnAddr, + ArrayRef<char> ArgBuffer) { using WrapperFnTy = shared::detail::CWrapperFunctionResult (*)(const char *Data, size_t Size); - auto *WrapperFn = jitTargetAddressToFunction<WrapperFnTy>(WrapperFnAddr); + auto *WrapperFn = WrapperFnAddr.toPtr<WrapperFnTy>(); SendResult(WrapperFn(ArgBuffer.data(), ArgBuffer.size())); } |