diff options
author | Rui Ueyama <ruiu@google.com> | 2014-03-27 21:56:29 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2014-03-27 21:56:29 +0000 |
commit | fffa311e9ef8b5be20ef2198c5326dc394a0a93c (patch) | |
tree | cc31cdf4d90af8350f4ca4214d979ea620591853 | |
parent | ad801b74598514a2872b914eb4a28cdd27c9a90c (diff) | |
download | bcm5719-llvm-fffa311e9ef8b5be20ef2198c5326dc394a0a93c.tar.gz bcm5719-llvm-fffa311e9ef8b5be20ef2198c5326dc394a0a93c.zip |
[C++11] Do not check __GXX_EXPERIMENTAL_CXX0X__.
Summary: Checking the experimental flag for C++0x is no longer needed.
Differential Revision: http://llvm-reviews.chandlerc.com/D3206
llvm-svn: 204964
-rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 1edcd45bc3b..8ede85539b4 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/include/llvm/Support/Compiler.h @@ -104,14 +104,13 @@ /// public: /// ... /// }; -#if __has_feature(cxx_deleted_functions) || \ - defined(__GXX_EXPERIMENTAL_CXX0X__) || LLVM_MSC_PREREQ(1800) +#if __has_feature(cxx_deleted_functions) || LLVM_MSC_PREREQ(1800) #define LLVM_DELETED_FUNCTION = delete #else #define LLVM_DELETED_FUNCTION #endif -#if __has_feature(cxx_constexpr) || defined(__GXX_EXPERIMENTAL_CXX0X__) +#if __has_feature(cxx_constexpr) # define LLVM_CONSTEXPR constexpr #else # define LLVM_CONSTEXPR @@ -326,8 +325,7 @@ /// \macro LLVM_EXPLICIT /// \brief Expands to explicit on compilers which support explicit conversion /// operators. Otherwise expands to nothing. -#if __has_feature(cxx_explicit_conversions) || \ - defined(__GXX_EXPERIMENTAL_CXX0X__) || LLVM_MSC_PREREQ(1800) +#if __has_feature(cxx_explicit_conversions) || LLVM_MSC_PREREQ(1800) #define LLVM_EXPLICIT explicit #else #define LLVM_EXPLICIT |