libc++abi: silence some warnings
authorSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 27 Apr 2015 02:21:52 +0000 (02:21 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Mon, 27 Apr 2015 02:21:52 +0000 (02:21 +0000)
commit91aef804b1932cba176e1d4f900cbc9dd9316a0e
treef72f122d370f87e6882212f52a7f2969724def4e
parent5b07572df23fa385b468786e4a8847ec74d11795
libc++abi: silence some warnings

Cleans up the -Wundef warning caused by the use of the __LITTLE_ENDIAN__ macro.
Instead use `__BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__`.  `__BYTE_ORDER__` is
defined by GCC since 4.2 and by clang.  This avoids the undef case where a macro
may be undefined.  This has previously caught real errors in libunwind.

llvm-svn: 235828
libcxxabi/src/cxa_demangle.cpp