diff options
| author | Logan Chien <tzuhsiang.chien@gmail.com> | 2016-08-31 15:16:40 +0000 |
|---|---|---|
| committer | Logan Chien <tzuhsiang.chien@gmail.com> | 2016-08-31 15:16:40 +0000 |
| commit | b2e620a23b950ca8e21ab6da0e14321cd566425f (patch) | |
| tree | 6c1c9a15127a0e984bde068556a92b6043e0d142 | |
| parent | 2b1084ac93bcf095a7021f8a3c34d8899329e271 (diff) | |
| download | bcm5719-llvm-b2e620a23b950ca8e21ab6da0e14321cd566425f.tar.gz bcm5719-llvm-b2e620a23b950ca8e21ab6da0e14321cd566425f.zip | |
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)
llvm-svn: 280251
| -rw-r--r-- | libcxxabi/src/cxa_personality.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxxabi/src/cxa_personality.cpp b/libcxxabi/src/cxa_personality.cpp index 85b6df2393a..0b75a1cbf2f 100644 --- a/libcxxabi/src/cxa_personality.cpp +++ b/libcxxabi/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. |

