diff options
author | Alp Toker <alp@nuanti.com> | 2013-12-22 22:19:49 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2013-12-22 22:19:49 +0000 |
commit | 7c29d748b8cc47c0474762888e307221ca350dce (patch) | |
tree | df88310d3da3b0844035d12ebc63c748c82145b7 /include/llvm/Support | |
parent | 4ef09de13e104754675ca53f4950536a0cb772a2 (diff) | |
download | llvm-7c29d748b8cc47c0474762888e307221ca350dce.tar.gz llvm-7c29d748b8cc47c0474762888e307221ca350dce.tar.bz2 llvm-7c29d748b8cc47c0474762888e307221ca350dce.tar.xz |
Define LLVM_HAS_STRONG_ENUMS
This is needed to guard an upcoming feature in clang until the C++11 transition
is complete, at which point it can be removed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197895 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r-- | include/llvm/Support/Compiler.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index ea394a4001..c94c9b359d 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -397,10 +397,13 @@ /// with MSVC. #if __has_feature(cxx_strong_enums) # define LLVM_ENUM_INT_TYPE(intty) : intty +#define LLVM_HAS_STRONG_ENUMS 1 #elif defined(_MSC_VER) && _MSC_VER >= 1600 // Added in MSVC 2010. # define LLVM_ENUM_INT_TYPE(intty) : intty +#define LLVM_HAS_STRONG_ENUMS 1 #else # define LLVM_ENUM_INT_TYPE(intty) +#define LLVM_HAS_STRONG_ENUMS 0 #endif /// \brief Does the compiler support generalized initializers (using braced |