mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-22 05:21:13 +00:00
give SDValue an operator->, allowing V->isTargetOpcode() and
many other natural things. llvm-svn: 96214
This commit is contained in:
parent
2b00dd86ae
commit
8e8498ea02
@ -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…
x
Reference in New Issue
Block a user