mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-17 03:07:06 +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:
parent
5ac03f1786
commit
9f06cb4fe5
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user