Skip to content

Commit

Permalink
Uglify and try to also handle ELF
Browse files Browse the repository at this point in the history
  • Loading branch information
ldionne committed Jul 23, 2024
1 parent de9fbd1 commit 3e0e1ea
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions libcxx/include/typeinfo
Original file line number Diff line number Diff line change
Expand Up @@ -275,13 +275,15 @@ struct __type_info_implementations {
__impl;
};

# if __has_cpp_attribute(clang::ptrauth_vtable_pointer)
# if __has_feature(ptrauth_type_info_discriminated_vtable_pointer)
# if __has_cpp_attribute(_Clang::__ptrauth_vtable_pointer__) && __has_feature(__ptrauth_calls__)
# if __has_feature(__ptrauth_vtable_address_discrimination__) || \
__has_feature(__ptrauth_vtable_type_discrimination__)
# define _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH \
[[clang::ptrauth_vtable_pointer(process_independent, address_discrimination, type_discrimination)]]
[[_Clang::__ptrauth_vtable_pointer__(process_independent, address_discrimination, type_discrimination)]]
# else
# define _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH \
[[clang::ptrauth_vtable_pointer(process_independent, no_address_discrimination, no_extra_discrimination)]]
[[_Clang::__ptrauth_vtable_pointer__( \
process_independent, no_address_discrimination, no_extra_discrimination)]]
# endif
# else
# define _LIBCPP_TYPE_INFO_VTABLE_POINTER_AUTH
Expand Down

0 comments on commit 3e0e1ea

Please sign in to comment.