summaryrefslogtreecommitdiff
path: root/src/cxa_handlers.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-03-01 03:55:57 +0000
committerShoaib Meenai <smeenai@fb.com>2017-03-01 03:55:57 +0000
commit54227aec1d6116c936afa576e2ea36ca3e94b29c (patch)
treeb5e9b8549f17e0ebd125857d04c081326cb97cd8 /src/cxa_handlers.cpp
parent9e2169efef5bd447dac9620c9c76fe4020e9b7e8 (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 git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@296576 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/cxa_handlers.cpp')
-rw-r--r--src/cxa_handlers.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/cxa_handlers.cpp b/src/cxa_handlers.cpp
index ce2cfba..99f90a2 100644
--- a/src/cxa_handlers.cpp
+++ b/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