Make the use of the "noinline" attribute conditional on using GCC.
authorBill Wendling <isanbard@gmail.com>
Wed, 7 May 2008 00:00:34 +0000 (00:00 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 7 May 2008 00:00:34 +0000 (00:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50789 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index 0320f7f7be0a840b5b8601cc7255071db4bd3083..f2ff91abf36916571893abb65c0eaf8cb8bac511 100644 (file)
@@ -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);