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/fallback_malloc.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/fallback_malloc.cpp')
-rw-r--r-- | libcxxabi/src/fallback_malloc.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libcxxabi/src/fallback_malloc.cpp b/libcxxabi/src/fallback_malloc.cpp index 3f8441e18822..ed53283a4434 100644 --- a/libcxxabi/src/fallback_malloc.cpp +++ b/libcxxabi/src/fallback_malloc.cpp @@ -194,8 +194,6 @@ size_t print_free_list () { namespace __cxxabiv1 { -#pragma GCC visibility push(hidden) - void * __malloc_with_fallback(size_t size) { void *ptr = std::malloc(size); if (NULL == ptr) // if malloc fails, fall back to emergency stash @@ -221,6 +219,4 @@ void __free_with_fallback(void *ptr) { std::free(ptr); } -#pragma GCC visibility pop - } // namespace __cxxabiv1 |