Support: Add __forceinline to Compiler.h on MSVC.
authorMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 5 Oct 2010 06:00:52 +0000 (06:00 +0000)
committerMichael J. Spencer <bigcheesegs@gmail.com>
Tue, 5 Oct 2010 06:00:52 +0000 (06:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115595 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/Compiler.h

index efd978f4a1f13a3c79ee0f68bd8320447c81dad9..9ff78173c96b43868e2475caeca4206578431f0c 100644 (file)
@@ -84,8 +84,9 @@
 // unimplemented errors, just use it in GCC 4.0 and later.
 #if __GNUC__ > 3
 #define ALWAYS_INLINE __attribute__((always_inline))
+#elif defined(_MSC_VER)
+#define ALWAYS_INLINE __forceinline
 #else
-// TODO: No idea how to do this with MSVC.
 #define ALWAYS_INLINE
 #endif