Skip to content

Commit c145cc3

Browse files
committed
Uglify and try to also handle ELF
1 parent 975402c commit c145cc3

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

libcxx/include/typeinfo

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,15 @@ struct __type_info_implementations {
275275
__impl;
276276
};
277277

278-
# if __has_cpp_attribute(clang::ptrauth_vtable_pointer)
279-
# if __has_feature(ptrauth_type_info_discriminated_vtable_pointer)
278+
# if __has_cpp_attribute(_Clang::__ptrauth_vtable_pointer__) && __has_feature(__ptrauth_calls__)
279+
# if __has_feature(__ptrauth_vtable_address_discrimination__) || \
280+
__has_feature(__ptrauth_vtable_type_discrimination__)
280281
# define _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH \
281-
[[clang::ptrauth_vtable_pointer(process_independent, address_discrimination, type_discrimination)]]
282+
[[_Clang::__ptrauth_vtable_pointer__(process_independent, address_discrimination, type_discrimination)]]
282283
# else
283284
# define _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH \
284-
[[clang::ptrauth_vtable_pointer(process_independent, no_address_discrimination, no_extra_discrimination)]]
285+
[[_Clang::__ptrauth_vtable_pointer__( \
286+
process_independent, no_address_discrimination, no_extra_discrimination)]]
285287
# endif
286288
# else
287289
# define _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH

0 commit comments

Comments
 (0)