[cfe-commits] r146208 - /cfe/trunk/lib/Headers/unwind.h

Rafael Espindola rafael.espindola at gmail.com
Thu Dec 8 16:08:01 PST 2011


Author: rafael
Date: Thu Dec  8 18:08:01 2011
New Revision: 146208

URL: http://llvm.org/viewvc/llvm-project?rev=146208&view=rev
Log:
Use default visibility in the the symbols declared in unwind.h. This matches
the behavior of gcc's unwind.h.

Modified:
    cfe/trunk/lib/Headers/unwind.h

Modified: cfe/trunk/lib/Headers/unwind.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Headers/unwind.h?rev=146208&r1=146207&r2=146208&view=diff
==============================================================================
--- cfe/trunk/lib/Headers/unwind.h (original)
+++ cfe/trunk/lib/Headers/unwind.h Thu Dec  8 18:08:01 2011
@@ -34,6 +34,11 @@
 extern "C" {
 #endif
 
+/* It is a bit strange for a header to play with the visibility of the
+   symbols it declares, but this matches gcc's behavior and some programs
+   depend on it */
+#pragma GCC visibility push(default)
+
 struct _Unwind_Context;
 typedef enum {
   _URC_NO_REASON = 0,
@@ -53,6 +58,8 @@
 typedef _Unwind_Reason_Code (*_Unwind_Trace_Fn)(struct _Unwind_Context*, void*);
 _Unwind_Reason_Code _Unwind_Backtrace(_Unwind_Trace_Fn, void*);
 
+#pragma GCC visibility pop
+
 #ifdef __cplusplus
 }
 #endif





More information about the cfe-commits mailing list