give SDValue an operator->, allowing V->isTargetOpcode() and

many other natural things.

llvm-svn: 96214
This commit is contained in:
Chris Lattner 2010-02-15 07:11:34 +00:00
parent 2b00dd86ae
commit 8e8498ea02

View 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;
}