[Support] Update MSVC compiler support in Compiler.h.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 16 Jan 2013 19:51:59 +0000 (19:51 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Wed, 16 Jan 2013 19:51:59 +0000 (19:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172644 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index 7e855b2f10cd324889ff609bcbe8fe63b5c76c7e..ebc1fadc14968f1a7727884373ca2dcbef1f0bf5 100644 (file)
@@ -81,7 +81,8 @@
 
 /// LLVM_FINAL - Expands to 'final' if the compiler supports it.
 /// Use to mark classes or virtual methods as final.
-#if (__has_feature(cxx_override_control))
+#if __has_feature(cxx_override_control) \
+    || (defined(_MSC_VER) && _MSC_VER >= 1700)
 #define LLVM_FINAL final
 #else
 #define LLVM_FINAL
@@ -89,7 +90,8 @@
 
 /// LLVM_OVERRIDE - Expands to 'override' if the compiler supports it.
 /// Use to mark virtual methods as overriding a base class method.
-#if (__has_feature(cxx_override_control))
+#if __has_feature(cxx_override_control) \
+    || (defined(_MSC_VER) && _MSC_VER >= 1700)
 #define LLVM_OVERRIDE override
 #else
 #define LLVM_OVERRIDE