summaryrefslogtreecommitdiff
path: root/include/llvm/Support
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2014-03-02 10:07:45 +0000
committerChandler Carruth <chandlerc@gmail.com>2014-03-02 10:07:45 +0000
commitcb13d409ffe756da26ded7749e1bcd1a3b3f1a67 (patch)
treec00212a580673c11c0b93719440888538caa7f1e /include/llvm/Support
parent5cba7174d2305a1e3aa9280dd35c18d0cb8b4363 (diff)
downloadllvm-cb13d409ffe756da26ded7749e1bcd1a3b3f1a67.tar.gz
llvm-cb13d409ffe756da26ded7749e1bcd1a3b3f1a67.tar.bz2
llvm-cb13d409ffe756da26ded7749e1bcd1a3b3f1a67.tar.xz
[C++11] Clarify in the Compiler.h support macros and comments (and
assert it with an #error) that we require MSVC 2012; MSVC 2010 will no longer suffice. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202631 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support')
-rw-r--r--include/llvm/Support/Compiler.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index 3ddbc6ba04..9ac1ce9a35 100644
--- a/include/llvm/Support/Compiler.h
+++ b/include/llvm/Support/Compiler.h
@@ -47,11 +47,16 @@
/// \macro LLVM_MSC_PREREQ
/// \brief Is the compiler MSVC of at least the specified version?
/// The common \param version values to check for are:
-/// * 1600: Microsoft Visual Studio 2010 / 10.0
/// * 1700: Microsoft Visual Studio 2012 / 11.0
/// * 1800: Microsoft Visual Studio 2013 / 12.0
#ifdef _MSC_VER
#define LLVM_MSC_PREREQ(version) (_MSC_VER >= (version))
+
+// We require at least MSVC 2012.
+#if !LLVM_MSC_PREREQ(1700)
+#error LLVM requires at least MSVC 2012.
+#endif
+
#else
#define LLVM_MSC_PREREQ(version) 0
#endif