diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-02-02 20:47:28 +0000 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-02-02 20:47:28 +0000 |
commit | 0240685ed6756ee0eed7c76e37eb2abdc01dcf82 (patch) | |
tree | 0eedf0a7317745b4673c48916c6ca5edbfa537fe /src/private_typeinfo.cpp | |
parent | 53cf764ab4a40b1e445e9e20219f950d621fcf53 (diff) | |
download | libcxxabi_35a-0240685ed6756ee0eed7c76e37eb2abdc01dcf82.tar.gz |
Work on restricting symbol visibility.
git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@149633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/private_typeinfo.cpp')
-rw-r--r-- | src/private_typeinfo.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/src/private_typeinfo.cpp b/src/private_typeinfo.cpp index 0469502..269116b 100644 --- a/src/private_typeinfo.cpp +++ b/src/private_typeinfo.cpp @@ -12,7 +12,7 @@ namespace __cxxabiv1 { -//#pragma GCC visibility push(hidden) +#pragma GCC visibility push(hidden) // __shim_type_info @@ -84,8 +84,6 @@ __pointer_to_member_type_info::~__pointer_to_member_type_info() { } -#pragma GCC visibility push(hidden) - // can_catch // A handler is a match for an exception object of type E if @@ -318,7 +316,7 @@ __pointer_type_info::can_catch(const __shim_type_info* thrown_type, return false; } -//#pragma GCC visibility pop +#pragma GCC visibility pop #pragma GCC visibility push(default) // __dynamic_cast @@ -398,9 +396,9 @@ __pointer_type_info::can_catch(const __shim_type_info* thrown_type, extern "C" void* __dynamic_cast(const void* static_ptr, - const __class_type_info* static_type, - const __class_type_info* dst_type, - std::ptrdiff_t src2dst_offset) + const __class_type_info* static_type, + const __class_type_info* dst_type, + std::ptrdiff_t src2dst_offset) { // Possible future optimization: Take advantage of src2dst_offset // Currently clang always sets src2dst_offset to -1 (no hint). |