mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-26 23:24:34 +00:00
give SDValue an operator->, allowing V->isTargetOpcode() and
many other natural things. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96214 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -821,6 +821,8 @@ public:
|
|||||||
/// set the SDNode
|
/// set the SDNode
|
||||||
void setNode(SDNode *N) { Node = N; }
|
void setNode(SDNode *N) { Node = N; }
|
||||||
|
|
||||||
|
inline SDNode *operator->() const { return Node; }
|
||||||
|
|
||||||
bool operator==(const SDValue &O) const {
|
bool operator==(const SDValue &O) const {
|
||||||
return Node == O.Node && ResNo == O.ResNo;
|
return Node == O.Node && ResNo == O.ResNo;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user