diff options
author | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-05 06:00:52 +0000 |
---|---|---|
committer | Michael J. Spencer <bigcheesegs@gmail.com> | 2010-10-05 06:00:52 +0000 |
commit | a0b991be3f2a15a8358d94c6b9773568ec74e8f0 (patch) | |
tree | e0f588099c788a6c2ca586d5dbf24fc176003d04 /include/llvm/Support/Compiler.h | |
parent | f000a7a212590bfd45e23c05bff5e1b683d25dd6 (diff) | |
download | external_llvm-a0b991be3f2a15a8358d94c6b9773568ec74e8f0.zip external_llvm-a0b991be3f2a15a8358d94c6b9773568ec74e8f0.tar.gz external_llvm-a0b991be3f2a15a8358d94c6b9773568ec74e8f0.tar.bz2 |
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
Diffstat (limited to 'include/llvm/Support/Compiler.h')
-rw-r--r-- | include/llvm/Support/Compiler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h index efd978f..9ff7817 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 |