summaryrefslogtreecommitdiffstats
path: root/libcxxabi/src/cxa_noexception.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
commitfe989a98176a7215cdbbcedcdf65e630f40a0d80 (patch)
tree125d0e26698eee336bc9d32b8635c92cb0fb7acd /libcxxabi/src/cxa_noexception.cpp
parent175ffa8c35c7949330ca67f01e0d509631b9781e (diff)
downloadbcm5719-llvm-fe989a98176a7215cdbbcedcdf65e630f40a0d80.tar.gz
bcm5719-llvm-fe989a98176a7215cdbbcedcdf65e630f40a0d80.zip
[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_noexception.cpp')
-rw-r--r--libcxxabi/src/cxa_noexception.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/libcxxabi/src/cxa_noexception.cpp b/libcxxabi/src/cxa_noexception.cpp
index e45ceff0165..1882c24fb2b 100644
--- a/libcxxabi/src/cxa_noexception.cpp
+++ b/libcxxabi/src/cxa_noexception.cpp
@@ -22,8 +22,6 @@
namespace __cxxabiv1 {
-#pragma GCC visibility push(default)
-
extern "C" {
void
@@ -55,6 +53,4 @@ __cxa_uncaught_exceptions() throw() { return 0; }
} // extern "C"
-#pragma GCC visibility pop
-
} // abi
OpenPOWER on IntegriCloud