xlc supports __attribute__((aligned(x))), use it.

Patch by Kai.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167087 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2012-10-31 00:54:26 +00:00
parent dc6d846df5
commit 52d053238a

View File

@ -78,7 +78,7 @@ template <size_t Alignment> struct AlignedCharArrayImpl;
template <> struct AlignedCharArrayImpl<x> { \
char alignas(x) aligned; \
}
#elif defined(__GNUC__)
#elif defined(__GNUC__) || defined(__IBM_ATTRIBUTES)
#define LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(x) \
template <> struct AlignedCharArrayImpl<x> { \
char aligned __attribute__((aligned(x))); \