From a0b991be3f2a15a8358d94c6b9773568ec74e8f0 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Tue, 5 Oct 2010 06:00:52 +0000 Subject: [PATCH] Support: Add __forceinline to Compiler.h on MSVC. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@115595 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/Compiler.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index efd978f4a1f..9ff78173c96 100644 --- a/include/llvm/Support/Compiler.h +++ b/include/llvm/Support/Compiler.h @@ -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