[PATCH] D50170: [libcxxabi] Fix test_exception_address_alignment test for ARM
Yvan Roux via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 2 01:28:56 PDT 2018
yroux created this revision.
yroux added reviewers: mclow.lists, hans.
Herald added a reviewer: EricWF.
Herald added a reviewer: javed.absar.
Herald added subscribers: ldionne, chrib, kristof.beyls.
Check _LIBCXXABI_ARM_EHABI macro instead of libunwind version
Repository:
rCXXA libc++abi
https://reviews.llvm.org/D50170
Files:
test/test_exception_address_alignment.pass.cpp
Index: test/test_exception_address_alignment.pass.cpp
===================================================================
--- test/test_exception_address_alignment.pass.cpp
+++ test/test_exception_address_alignment.pass.cpp
@@ -20,14 +20,15 @@
#include <cstdint>
#include <cassert>
+#include <__cxxabi_config.h>
#include <unwind.h>
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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50170.158696.patch
Type: text/x-patch
Size: 636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180802/cc1a1ce5/attachment.bin>
More information about the llvm-commits
mailing list