summaryrefslogtreecommitdiffstats
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
commit13a15700fcb4336a9fb391c99c73aae7ab223cdc (patch)
treebed0d20c6e5483dc0bec8044b770d760d9bcc78b
parent0d84582dc08051aed9392b03b422dea16d0013fd (diff)
downloadbcm5719-llvm-13a15700fcb4336a9fb391c99c73aae7ab223cdc.tar.gz
bcm5719-llvm-13a15700fcb4336a9fb391c99c73aae7ab223cdc.zip
Make the use of the "noinline" attribute conditional on using GCC.
llvm-svn: 50789
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 0320f7f7be0..f2ff91abf36 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/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);
OpenPOWER on IntegriCloud