add directive to disable inlining

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2006-08-27 13:16:05 +00:00
parent a4f0b3a084
commit 6f3241dbbf

View File

@ -37,4 +37,12 @@
#define TEMPLATE_INSTANTIATION(X)
#endif
// DISABLE_INLINE - On compilers where we have a directive to do so, mark a
// method "not for inlining".
#if (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#define DISABLE_INLINE __attribute__((noinline))
#else
#define DISABLE_INLINE
#endif
#endif