[libcxx-commits] [libcxx] [libcxxabi] [libc++] Upstream ptrauth support in libc++ and libc++abi (PR #84573)
via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Mar 8 14:14:24 PST 2024
================
@@ -51,6 +51,21 @@
#include <atomic>
#endif
+#if __has_feature(ptrauth_calls)
+#include <ptrauth.h>
+#endif
+
+
+template<typename T>
+static inline
+T *
+get_vtable(T *vtable) {
+#if __has_feature(ptrauth_calls)
----------------
EricWF wrote:
Could you please give this a more descriptive name than `get_vtable`, because we already have the vtable in most cases when we call this so it's a touch confusing.
Maybe a name that ties it to `ptrauth`?
https://github.com/llvm/llvm-project/pull/84573
More information about the libcxx-commits
mailing list