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

Chandler Carruth chandlerc at gmail.com
Sun Jun 24 22:20:13 PDT 2012


Author: chandlerc
Date: Mon Jun 25 00:20:13 2012
New Revision: 159125

URL: http://llvm.org/viewvc/llvm-project?rev=159125&view=rev
Log:
Just remove generic support for C++11 alignas -- GCC is already
advertising complete support w/o alignas implemented, and its
implementation of alignas in the latest versions is so convoluted as to
be unusable.

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=159125&r1=159124&r2=159125&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/AlignOf.h (original)
+++ llvm/trunk/include/llvm/Support/AlignOf.h Mon Jun 25 00:20:13 2012
@@ -72,7 +72,7 @@
 template <> struct AlignedCharArrayImpl<0> {
   typedef char type;
 };
-#if __cplusplus == 201103L || __has_feature(cxx_alignas)
+#if __has_feature(cxx_alignas)
 #define LLVM_ALIGNEDCHARARRAY_TEMPLATE_ALIGNMENT(x) \
   template <> struct AlignedCharArrayImpl<x> { \
     typedef char alignas(x) type; \





More information about the llvm-commits mailing list