aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/Compiler.h
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2009-11-14 16:37:18 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2009-11-14 16:37:18 +0000
commit0f5690b2a5307bf3ca135f41ca2a42123026d12e (patch)
treee9314b19f20e7adb35696ada96a399f749942e75 /include/llvm/Support/Compiler.h
parent653ec44e67895e6a844808a07cf98bfcecf46da4 (diff)
downloadexternal_llvm-0f5690b2a5307bf3ca135f41ca2a42123026d12e.zip
external_llvm-0f5690b2a5307bf3ca135f41ca2a42123026d12e.tar.gz
external_llvm-0f5690b2a5307bf3ca135f41ca2a42123026d12e.tar.bz2
Implement DISABLE_INLINE for MSVC. This required changing the position in all
forward declaration and patching tblgen to emit it right. Patch by Amine Khaldi! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@88798 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/Compiler.h')
-rw-r--r--include/llvm/Support/Compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Support/Compiler.h b/include/llvm/Support/Compiler.h
index 67770c3..0defe69 100644
--- a/include/llvm/Support/Compiler.h
+++ b/include/llvm/Support/Compiler.h
@@ -52,6 +52,8 @@
// method "not for inlining".
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#define DISABLE_INLINE __attribute__((noinline))
+#elif defined(_MSC_VER)
+#define DISABLE_INLINE __declspec(noinline)
#else
#define DISABLE_INLINE
#endif