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
This commit is contained in:
Michael J. Spencer 2010-10-05 06:00:52 +00:00
parent f000a7a212
commit a0b991be3f

View 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