Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-03-01 06:55:57 +0300
committerShoaib Meenai <smeenai@fb.com>2017-03-01 06:55:57 +0300
commitfe989a98176a7215cdbbcedcdf65e630f40a0d80 (patch)
tree125d0e26698eee336bc9d32b8635c92cb0fb7acd /libcxxabi/src/cxa_thread_atexit.cpp
parent175ffa8c35c7949330ca67f01e0d509631b9781e (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_thread_atexit.cpp')
-rw-r--r--libcxxabi/src/cxa_thread_atexit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxxabi/src/cxa_thread_atexit.cpp b/libcxxabi/src/cxa_thread_atexit.cpp
index 748b0eb11962..49d15d6b1459 100644
--- a/libcxxabi/src/cxa_thread_atexit.cpp
+++ b/libcxxabi/src/cxa_thread_atexit.cpp
@@ -20,7 +20,7 @@ namespace __cxxabiv1 {
#ifndef HAVE___CXA_THREAD_ATEXIT_IMPL
// A weak symbol is used to detect this function's presence in the C library
// at runtime, even if libc++ is built against an older libc
- __attribute__((__weak__))
+ _LIBCXXABI_WEAK
#endif
int __cxa_thread_atexit_impl(Dtor, void*, void*);