[cfe-commits] [libcxxabi] r165883 - /libcxxabi/trunk/src/private_typeinfo.h

Howard Hinnant hhinnant at apple.com
Sat Oct 13 11:46:00 PDT 2012


Author: hhinnant
Date: Sat Oct 13 13:45:59 2012
New Revision: 165883

URL: http://llvm.org/viewvc/llvm-project?rev=165883&view=rev
Log:
Make the type_info for __shim_type_info visible.  This should address some failing dynamic_casts that a few applications are doing on the type_info hierarchy.

Modified:
    libcxxabi/trunk/src/private_typeinfo.h

Modified: libcxxabi/trunk/src/private_typeinfo.h
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/private_typeinfo.h?rev=165883&r1=165882&r2=165883&view=diff
==============================================================================
--- libcxxabi/trunk/src/private_typeinfo.h (original)
+++ libcxxabi/trunk/src/private_typeinfo.h Sat Oct 13 13:45:59 2012
@@ -18,15 +18,15 @@
 
 #pragma GCC visibility push(hidden)
 
-class __attribute__ ((__visibility__("hidden"))) __shim_type_info
+class __attribute__ ((__visibility__("default"))) __shim_type_info
     : public std::type_info
 {
 public:
-    virtual ~__shim_type_info();
+     __attribute__ ((__visibility__("hidden"))) virtual ~__shim_type_info();
 
-    virtual void noop1() const;
-    virtual void noop2() const;
-    virtual bool can_catch(const __shim_type_info* thrown_type, void*& adjustedPtr) const = 0;
+     __attribute__ ((__visibility__("hidden"))) virtual void noop1() const;
+     __attribute__ ((__visibility__("hidden"))) virtual void noop2() const;
+     __attribute__ ((__visibility__("hidden"))) virtual bool can_catch(const __shim_type_info* thrown_type, void*& adjustedPtr) const = 0;
 };
 
 class __attribute__ ((__visibility__("default"))) __fundamental_type_info





More information about the cfe-commits mailing list