aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2008-05-07 00:00:34 +0000
committerBill Wendling <isanbard@gmail.com>2008-05-07 00:00:34 +0000
commit69cedcbcece7e1138c77aac5b34a1377006254c1 (patch)
tree6b557d06dda68e690b2c8756d1aae033a592532a
parent77a895e59912717fd00e9e83b131c47f29d90986 (diff)
downloadexternal_llvm-69cedcbcece7e1138c77aac5b34a1377006254c1.zip
external_llvm-69cedcbcece7e1138c77aac5b34a1377006254c1.tar.gz
external_llvm-69cedcbcece7e1138c77aac5b34a1377006254c1.tar.bz2
Make the use of the "noinline" attribute conditional on using GCC.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50789 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/SelectionDAGNodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h
index 0320f7f..f2ff91a 100644
--- a/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -1415,7 +1415,11 @@ class HandleSDNode : public SDNode {
public:
// FIXME: Remove the "noinline" attribute once <rdar://problem/5852746> is
// fixed.
+#ifdef __GNUC__
explicit __attribute__((__noinline__)) HandleSDNode(SDOperand X)
+#else
+ explicit HandleSDNode(SDOperand X)
+#endif
: SDNode(ISD::HANDLENODE, getSDVTList(MVT::Other)) {
Op = X;
InitOperands(&Op, 1);