give SDValue an operator->, allowing V->isTargetOpcode() and
authorChris Lattner <sabre@nondot.org>
Mon, 15 Feb 2010 07:11:34 +0000 (07:11 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 15 Feb 2010 07:11:34 +0000 (07:11 +0000)
many other natural things.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96214 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAGNodes.h

index c8523d81cc745632d4d6ddd64bfc9b0281a6e472..6ba2d3b24b4a35cb29c2f00909cbc4c88ea64e66 100644 (file)
@@ -821,6 +821,8 @@ public:
   /// set the SDNode
   void setNode(SDNode *N) { Node = N; }
 
+  inline SDNode *operator->() const { return Node; }
+  
   bool operator==(const SDValue &O) const {
     return Node == O.Node && ResNo == O.ResNo;
   }