diff options
author | Howard Hinnant <hhinnant@apple.com> | 2012-02-03 00:47:28 +0400 |
---|---|---|
committer | Howard Hinnant <hhinnant@apple.com> | 2012-02-03 00:47:28 +0400 |
commit | eaa65afc7bff75649cab2a4be4ce18f82554db5b (patch) | |
tree | 7396b684027c1d47b99a8a297ced48ee4f4ea042 /libcxxabi/src/private_typeinfo.cpp | |
parent | 90ef25c05ed63aab61a946231332e2e708eb6b8d (diff) |
Work on restricting symbol visibility.
llvm-svn: 149633
Diffstat (limited to 'libcxxabi/src/private_typeinfo.cpp')
-rw-r--r-- | libcxxabi/src/private_typeinfo.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/libcxxabi/src/private_typeinfo.cpp b/libcxxabi/src/private_typeinfo.cpp index 0469502312d8..269116b66fa6 100644 --- a/libcxxabi/src/private_typeinfo.cpp +++ b/libcxxabi/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). |