diff options
author | Shoaib Meenai <smeenai@fb.com> | 2017-03-01 06:55:57 +0300 |
---|---|---|
committer | Shoaib Meenai <smeenai@fb.com> | 2017-03-01 06:55:57 +0300 |
commit | fe989a98176a7215cdbbcedcdf65e630f40a0d80 (patch) | |
tree | 125d0e26698eee336bc9d32b8635c92cb0fb7acd /libcxxabi/src/cxa_handlers.cpp | |
parent | 175ffa8c35c7949330ca67f01e0d509631b9781e (diff) |
[libc++abi] Clean up visibility
Use the libc++abi visibility macros instead of pragmas or using
visibility attributes directly. Clean up redundant attributes on
definitions (where the declarations already have visibility attributes
applied, from either libc++ or libc++abi headers).
Introduce _LIBCXXABI_WEAK as a drive-by cleanup, which matches the
semantics of _LIBCPP_WEAK.
No functional change. Tested by building on Linux before and after this
change and verifying that the list of exported symbols is identical.
Differential Revision: https://reviews.llvm.org/D26949
llvm-svn: 296576
Diffstat (limited to 'libcxxabi/src/cxa_handlers.cpp')
-rw-r--r-- | libcxxabi/src/cxa_handlers.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libcxxabi/src/cxa_handlers.cpp b/libcxxabi/src/cxa_handlers.cpp index ce2cfba35fd6..99f90a2dfc49 100644 --- a/libcxxabi/src/cxa_handlers.cpp +++ b/libcxxabi/src/cxa_handlers.cpp @@ -32,7 +32,6 @@ get_unexpected() _NOEXCEPT // return __cxa_unexpected_handler.load(memory_order_acq); } -__attribute__((visibility("hidden"), noreturn)) void __unexpected(unexpected_handler func) { @@ -57,7 +56,6 @@ get_terminate() _NOEXCEPT // return __cxa_terminate_handler.load(memory_order_acq); } -__attribute__((visibility("hidden"), noreturn)) void __terminate(terminate_handler func) _NOEXCEPT { @@ -105,7 +103,7 @@ terminate() _NOEXCEPT // In the future this will become: // std::atomic<std::new_handler> __cxa_new_handler(0); extern "C" { -_LIBCXXABI_DATA_VIS new_handler __cxa_new_handler = 0; +new_handler __cxa_new_handler = 0; } new_handler |