diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-09 00:08:01 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-12-09 00:08:01 +0000 |
commit | 9b7568da31b0dc97e15253391cb100e9958d3d78 (patch) | |
tree | 10a82125d00180ec69c74178abdb830179e3a2e2 | |
parent | a2398d7da920b896001f385587e7f7d3366e5b17 (diff) |
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
-rw-r--r-- | lib/Headers/unwind.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |