]> granicus.if.org Git - clang/commitdiff
Use default visibility in the the symbols declared in unwind.h. This matches
authorRafael Espindola <rafael.espindola@gmail.com>
Fri, 9 Dec 2011 00:08:01 +0000 (00:08 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Fri, 9 Dec 2011 00:08:01 +0000 (00:08 +0000)
the behavior of gcc's unwind.h.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146208 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Headers/unwind.h

index 0e42ba4dcadb4035f58b3f4b4eed4b9feb9aa128..66ede93e6b9626b25ca6fa5009ed731318d6bd5c 100644 (file)
 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 @@ uintptr_t _Unwind_GetIP(struct _Unwind_Context* context);
 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