[llvm-commits] [llvm] r172644 - /llvm/trunk/include/llvm/Support/Compiler.h

Michael J. Spencer bigcheesegs at gmail.com
Wed Jan 16 11:52:00 PST 2013


Author: mspencer
Date: Wed Jan 16 13:51:59 2013
New Revision: 172644

URL: http://llvm.org/viewvc/llvm-project?rev=172644&view=rev
Log:
[Support] Update MSVC compiler support in Compiler.h.

Modified:
    llvm/trunk/include/llvm/Support/Compiler.h

Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=172644&r1=172643&r2=172644&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Wed Jan 16 13:51:59 2013
@@ -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





More information about the llvm-commits mailing list