From: Michael J. Spencer Date: Tue, 5 Oct 2010 06:00:52 +0000 (+0000) Subject: Support: Add __forceinline to Compiler.h on MSVC. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a0b991be3f2a15a8358d94c6b9773568ec74e8f0;p=oota-llvm.git 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 --- 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