[llvm-commits] [llvm] r115595 - /llvm/trunk/include/llvm/Support/Compiler.h
Michael J. Spencer
bigcheesegs at gmail.com
Mon Oct 4 23:00:52 PDT 2010
Author: mspencer
Date: Tue Oct 5 01:00:52 2010
New Revision: 115595
URL: http://llvm.org/viewvc/llvm-project?rev=115595&view=rev
Log:
Support: Add __forceinline to Compiler.h on MSVC.
Modified:
llvm/trunk/include/llvm/Support/Compiler.h
Modified: llvm/trunk/include/llvm/Support/Compiler.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/Compiler.h?rev=115595&r1=115594&r2=115595&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/Compiler.h (original)
+++ llvm/trunk/include/llvm/Support/Compiler.h Tue Oct 5 01:00:52 2010
@@ -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
More information about the llvm-commits
mailing list