From: Rafael Espindola Date: Fri, 9 Dec 2011 00:08:01 +0000 (+0000) Subject: Use default visibility in the the symbols declared in unwind.h. This matches X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b7568da31b0dc97e15253391cb100e9958d3d78;p=clang Use default visibility in the the symbols declared in unwind.h. This matches the behavior of gcc's unwind.h. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146208 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Headers/unwind.h b/lib/Headers/unwind.h index 0e42ba4dca..66ede93e6b 100644 --- a/lib/Headers/unwind.h +++ b/lib/Headers/unwind.h @@ -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 @@ 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