summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLogan Chien <tzuhsiang.chien@gmail.com>2016-08-31 15:16:40 +0000
committerLogan Chien <tzuhsiang.chien@gmail.com>2016-08-31 15:16:40 +0000
commitb96e846910b2e7ed140b84e412b90639747810a4 (patch)
treeabd20809010f3b60378526e1006e23e946c95e7e
parent01489a22c5cf8b47baffac7b51316b2e61363038 (diff)
Wrap LIBCXXABI_USE_LLVM_UNWINDER with defined().
This commit fixes -Wundef by replacing: #if !LIBCXXABI_USE_LLVM_UNWINDER with: #if !defined(LIBCXXABI_USE_LLVM_UNWINDER) git-svn-id: https://llvm.org/svn/llvm-project/libcxxabi/trunk@280251 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--src/cxa_personality.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cxa_personality.cpp b/src/cxa_personality.cpp
index 85b6df2..0b75a1c 100644
--- a/src/cxa_personality.cpp
+++ b/src/cxa_personality.cpp
@@ -1035,7 +1035,7 @@ static _Unwind_Reason_Code continue_unwind(_Unwind_Exception* unwind_exception,
}
// ARM register names
-#if !LIBCXXABI_USE_LLVM_UNWINDER
+#if !defined(LIBCXXABI_USE_LLVM_UNWINDER)
static const uint32_t REG_UCB = 12; // Register to save _Unwind_Control_Block
#endif
static const uint32_t REG_SP = 13;
@@ -1071,7 +1071,7 @@ __gxx_personality_v0(_Unwind_State state,
bool native_exception = (unwind_exception->exception_class & get_vendor_and_language) ==
(kOurExceptionClass & get_vendor_and_language);
-#if !LIBCXXABI_USE_LLVM_UNWINDER
+#if !defined(LIBCXXABI_USE_LLVM_UNWINDER)
// Copy the address of _Unwind_Control_Block to r12 so that
// _Unwind_GetLanguageSpecificData() and _Unwind_GetRegionStart() can
// return correct address.