Changes in directory llvm/include/llvm/Support:

Compiler.h updated: 1.1 -> 1.2
---
Log message:

add directive to disable inlining


---
Diffs of the changes:  (+8 -0)

 Compiler.h |    8 ++++++++
 1 files changed, 8 insertions(+)


Index: llvm/include/llvm/Support/Compiler.h
diff -u llvm/include/llvm/Support/Compiler.h:1.1 
llvm/include/llvm/Support/Compiler.h:1.2
--- llvm/include/llvm/Support/Compiler.h:1.1    Sun Aug 27 07:42:45 2006
+++ llvm/include/llvm/Support/Compiler.h        Sun Aug 27 08:16:05 2006
@@ -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



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to