diff options
| author | Ranjeet Singh <Ranjeet.Singh@arm.com> | 2017-03-31 15:28:06 +0000 |
|---|---|---|
| committer | Ranjeet Singh <Ranjeet.Singh@arm.com> | 2017-03-31 15:28:06 +0000 |
| commit | 7d6741381d02cee797a01c1ffa5ab10bae4dbe66 (patch) | |
| tree | bdd1238678add8d0afe143eba4a67530102e55df /src/Unwind_AppleExtras.cpp | |
| parent | 87afb02deab7087d8b6ac6293fca37535a2150f8 (diff) | |
| download | platform_external_libunwind_llvm-7d6741381d02cee797a01c1ffa5ab10bae4dbe66.tar.gz platform_external_libunwind_llvm-7d6741381d02cee797a01c1ffa5ab10bae4dbe66.tar.bz2 platform_external_libunwind_llvm-7d6741381d02cee797a01c1ffa5ab10bae4dbe66.zip | |
[libunwind] Clean up macro usage.
Convention in libunwind is to use !defined(FOOT) not !FOO.
Differential Revision: https://reviews.llvm.org/D31078
git-svn-id: https://llvm.org/svn/llvm-project/libunwind/trunk@299225 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'src/Unwind_AppleExtras.cpp')
| -rw-r--r-- | src/Unwind_AppleExtras.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/Unwind_AppleExtras.cpp b/src/Unwind_AppleExtras.cpp index 8015150..471059b 100644 --- a/src/Unwind_AppleExtras.cpp +++ b/src/Unwind_AppleExtras.cpp @@ -77,7 +77,7 @@ struct libgcc_object_info { #endif -#if _LIBUNWIND_BUILD_ZERO_COST_APIS +#if defined(_LIBUNWIND_BUILD_ZERO_COST_APIS) // // symbols in libSystem.dylib in 10.6 and later, but are in libgcc_s.dylib in @@ -116,12 +116,12 @@ NEVER_HERE(__register_frame_table) NEVER_HERE(__deregister_frame_info) NEVER_HERE(__deregister_frame_info_bases) -#endif // _LIBUNWIND_BUILD_ZERO_COST_APIS +#endif // defined(_LIBUNWIND_BUILD_ZERO_COST_APIS) -#if _LIBUNWIND_BUILD_SJLJ_APIS +#if defined(_LIBUNWIND_BUILD_SJLJ_APIS) // // symbols in libSystem.dylib in iOS 5.0 and later, but are in libgcc_s.dylib in // earlier versions @@ -141,7 +141,7 @@ NOT_HERE_BEFORE_5_0(_Unwind_SjLj_RaiseException) NOT_HERE_BEFORE_5_0(_Unwind_SjLj_Resume_or_Rethrow) NOT_HERE_BEFORE_5_0(_Unwind_SjLj_Unregister) -#endif // _LIBUNWIND_BUILD_SJLJ_APIS +#endif // defined(_LIBUNWIND_BUILD_SJLJ_APIS) namespace libunwind { @@ -184,7 +184,7 @@ bool checkKeyMgrRegisteredFDEs(uintptr_t pc, void *&fde) { } -#if !defined(FOR_DYLD) && _LIBUNWIND_BUILD_SJLJ_APIS +#if !defined(FOR_DYLD) && defined(_LIBUNWIND_BUILD_SJLJ_APIS) #ifndef _LIBUNWIND_HAS_NO_THREADS #include <System/pthread_machdep.h> |
