diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-31 00:54:26 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-10-31 00:54:26 +0000 |
commit | 52d053238aabff0ed7ed0213cb192ce6adf7a190 (patch) | |
tree | cdd898c86b33aa9e1b684a28a12794815d9ee57b /include | |
parent | dc6d846df56f83be4c7045ccc9092f8a8343360b (diff) | |
download | external_llvm-52d053238aabff0ed7ed0213cb192ce6adf7a190.zip external_llvm-52d053238aabff0ed7ed0213cb192ce6adf7a190.tar.gz external_llvm-52d053238aabff0ed7ed0213cb192ce6adf7a190.tar.bz2 |
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
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/AlignOf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Support/AlignOf.h b/include/llvm/Support/AlignOf.h index 22c07d0..d6b0ab8 100644 --- a/include/llvm/Support/AlignOf.h +++ b/include/llvm/Support/AlignOf.h @@ -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))); \ |