summaryrefslogtreecommitdiff
path: root/src/private_typeinfo.cpp
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-09-23 21:36:24 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-09-23 21:36:24 +0000
commit46eb39a561ce4e4952abcb05378e38f01fd3fac6 (patch)
tree4f8a4b19e2530c84478bc297a567590f998f70a4 /src/private_typeinfo.cpp
parentb62a4dd90c2568cfc49f710d15a326b9ead3f610 (diff)
annotate more function visibility
These data and text symbols were missing annotations for building with hidden visibility. As we do not currently enable hidden visibility by default, this is a NFC for the buildbots. git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@282300 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/private_typeinfo.cpp')
-rw-r--r--src/private_typeinfo.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/private_typeinfo.cpp b/src/private_typeinfo.cpp
index 9804e16..73ef362 100644
--- a/src/private_typeinfo.cpp
+++ b/src/private_typeinfo.cpp
@@ -616,13 +616,11 @@ bool __pointer_to_member_type_info::can_catch_nested(
// If there is a public path from (dynamic_ptr, dynamic_type) to
// (static_ptr, static_type), then return dynamic_ptr.
// Else return nullptr.
-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)
-{
+
+extern "C" _LIBCXXABI_FUNC_VIS void *
+__dynamic_cast(const void *static_ptr, 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).