[libcxxabi] Fix test_exception_address_alignment test for ARM
authorYvan Roux <yvan.roux@linaro.org>
Thu, 16 Aug 2018 11:38:09 +0000 (11:38 +0000)
committerYvan Roux <yvan.roux@linaro.org>
Thu, 16 Aug 2018 11:38:09 +0000 (11:38 +0000)
Check _LIBCXXABI_ARM_EHABI macro instead of libunwind version.

Fixes PR34182

Differential revision: https://reviews.llvm.org/D50170

llvm-svn: 339865

libcxxabi/test/test_exception_address_alignment.pass.cpp

index 138fb4d..5d36659 100644 (file)
@@ -20,6 +20,7 @@
 
 #include <cstdint>
 #include <cassert>
+#include <__cxxabi_config.h>
 
 #include <unwind.h>
 
@@ -27,7 +28,7 @@ struct __attribute__((aligned)) AlignedType {};
 
 // EHABI  : 8-byte aligned
 // Itanium: Largest supported alignment for the system
-#if defined(_LIBUNWIND_ARM_EHABI)
+#if defined(_LIBCXXABI_ARM_EHABI)
 #  define EXPECTED_ALIGNMENT 8
 #else
 #  define EXPECTED_ALIGNMENT alignof(AlignedType)