summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-10-31 00:54:26 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-10-31 00:54:26 +0000
commit7edf38f7e3303c47b198d94403df3b772b59514a (patch)
tree7cd5ed9aa89528675347f2c118739b9c45a6d466 /llvm/include
parentebb31e9c42241905b17599db7ce2d1bbe102a356 (diff)
downloadbcm5719-llvm-7edf38f7e3303c47b198d94403df3b772b59514a.tar.gz
bcm5719-llvm-7edf38f7e3303c47b198d94403df3b772b59514a.zip
xlc supports __attribute__((aligned(x))), use it.
Patch by Kai. llvm-svn: 167087
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Support/AlignOf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/AlignOf.h b/llvm/include/llvm/Support/AlignOf.h
index 22c07d04fad..d6b0ab8b375 100644
--- a/llvm/include/llvm/Support/AlignOf.h
+++ b/llvm/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))); \
OpenPOWER on IntegriCloud