aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2025-10-06 15:46:42 +1100
committerGitHub <noreply@github.com>2025-10-06 15:46:42 +1100
commit36cfdebe927c34508c1e245b459da43b745ae620 (patch)
treebe85d4aac3f8d6ee9d06655d9996679ddc46f0fa /clang/lib/Frontend/CompilerInvocation.cpp
parent6b1604ac30082cd7316f06c2b904cb23af95468e (diff)
downloadllvm-36cfdebe927c34508c1e245b459da43b745ae620.zip
llvm-36cfdebe927c34508c1e245b459da43b745ae620.tar.gz
llvm-36cfdebe927c34508c1e245b459da43b745ae620.tar.bz2
[orc-rt] Add method-wrapper utils for use with WrapperFunction::handle. (#162035)
WrapperFunction::handleWithAsyncMethod can be used to wrap asynchronous methods (void methods whose first arguments are Return callbacks) for use with WrapperFunction::handle. WrapperFunction::handleWithSyncMethod can be used to wrap regular (non-asynchronous) methods for use with WrapperFunction::handle. Both variants return function objects that take a Return callback as their first argument, and an ExecutorAddr representing the address of the instance to call the object on. For asynchronous methods the resulting function object (AsyncMethod<method-ptr>) forwards the Return callback through to the method. For synchronous methods the method is called and the result passed to the Return callback.
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions