[all-commits] [llvm/llvm-project] 98616c: [ORC] Add an ExecutorAddr::toPtr overload for func...
lhames via All-commits
all-commits at lists.llvm.org
Thu May 5 12:37:37 PDT 2022
Author: Lang Hames <lhames at gmail.com>
Date: 2022-05-05 (Thu, 05 May 2022)
[ORC] Add an ExecutorAddr::toPtr overload for function types.
In the common case of converting an ExecutorAddr to a function pointer type,
this eliminates the need for the '(*)' boilerplate to explicitly specify a
function pointer. E.g.:
auto *F = A.toPtr<int(*)()>();
can now be written as
auto *F = A.toPtr<int()>();
More information about the All-commits