Skip to content

Commit

Permalink
[C++11] Do not check __GXX_EXPERIMENTAL_CXX0X__.
Browse files Browse the repository at this point in the history
Summary: Checking the experimental flag for C++0x is no longer needed.

Differential Revision: http://llvm-reviews.chandlerc.com/D3206

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@204964 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
rui314 committed Mar 27, 2014
1 parent 276d854 commit 72f0f26
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions include/llvm/Support/Compiler.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 72f0f26

Please sign in to comment.