[llvm-commits] [llvm] r167087 - /llvm/trunk/include/llvm/Support/AlignOf.h

Rafael Espindola rafael.espindola at gmail.com
Tue Oct 30 17:54:26 PDT 2012


Author: rafael
Date: Tue Oct 30 19:54:26 2012
New Revision: 167087

URL: http://llvm.org/viewvc/llvm-project?rev=167087&view=rev
Log:
xlc supports __attribute__((aligned(x))), use it.
Patch by Kai.

Modified:
    llvm/trunk/include/llvm/Support/AlignOf.h

Modified: llvm/trunk/include/llvm/Support/AlignOf.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/AlignOf.h?rev=167087&r1=167086&r2=167087&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/AlignOf.h (original)
+++ llvm/trunk/include/llvm/Support/AlignOf.h Tue Oct 30 19:54:26 2012
@@ -78,7 +78,7 @@
   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))); \





More information about the llvm-commits mailing list