projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a4f0b3a
)
add directive to disable inlining
author
Chris Lattner
<sabre@nondot.org>
Sun, 27 Aug 2006 13:16:05 +0000
(13:16 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 27 Aug 2006 13:16:05 +0000
(13:16 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29912
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Support/Compiler.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/Compiler.h
b/include/llvm/Support/Compiler.h
index 046033fb9e424a4dc72b60a1eb4d5a61056a7f0b..06be685f971884fb8bb1d47f0b728d8d65d630e7 100644
(file)
--- a/
include/llvm/Support/Compiler.h
+++ b/
include/llvm/Support/Compiler.h
@@
-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