diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-03-02 10:07:45 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-03-02 10:07:45 +0000 |
| commit | d293fc21741ff564c08e9594c3f088b48a080e82 (patch) | |
| tree | a124039a56738117f95be98d2641344f22d8a8d5 /llvm | |
| parent | bbc6d6273668a7de3592e7515335e1bfd9c5286b (diff) | |
| download | bcm5719-llvm-d293fc21741ff564c08e9594c3f088b48a080e82.tar.gz bcm5719-llvm-d293fc21741ff564c08e9594c3f088b48a080e82.zip | |
[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.
llvm-svn: 202631
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index 3ddbc6ba041..9ac1ce9a357 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/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 |

