Define LLVM_HAS_STRONG_ENUMS
authorAlp Toker <alp@nuanti.com>
Sun, 22 Dec 2013 22:19:49 +0000 (22:19 +0000)
committerAlp Toker <alp@nuanti.com>
Sun, 22 Dec 2013 22:19:49 +0000 (22:19 +0000)
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

include/llvm/Support/Compiler.h

index ea394a40019794803a5f010db415fbcc44dfc9e6..c94c9b359d432b2b05b21a5bec5b4e4704f4ccb7 100644 (file)
 /// 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