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 | bdd77df090e5aebcced272bc60c24307297886ad (patch) | |
| tree | 36582323790875f59f815d4a12aca8c8db319fde /llvm/include | |
| parent | 70ac5fa42cd5871180678913bb20aa5e62244720 (diff) | |
| download | bcm5719-llvm-bdd77df090e5aebcced272bc60c24307297886ad.tar.gz bcm5719-llvm-bdd77df090e5aebcced272bc60c24307297886ad.zip | |
Support: Add __forceinline to Compiler.h on MSVC.
llvm-svn: 115595
Diffstat (limited to 'llvm/include')
| -rw-r--r-- | llvm/include/llvm/Support/Compiler.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/Compiler.h b/llvm/include/llvm/Support/Compiler.h index efd978f4a1f..9ff78173c96 100644 --- a/llvm/include/llvm/Support/Compiler.h +++ b/llvm/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 |

