the behavior of gcc's unwind.h.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146208
91177308-0d34-0410-b5e6-
96231b3b80d8
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,
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