forked from OSchip/llvm-project
[SelectionDAG] Don't default the SelectionDAG* parameter to SDValue::dump to nullptr. Use two different signatures instead.
This matches what we do in SDNode. This should allow SDValue::dump to be used in the debugger without getting an error if you don't pass an argument. llvm-svn: 327811
This commit is contained in:
parent
c4d65751df
commit
f7fdfb3fb6
|
@ -189,8 +189,10 @@ public:
|
||||||
inline bool isUndef() const;
|
inline bool isUndef() const;
|
||||||
inline unsigned getMachineOpcode() const;
|
inline unsigned getMachineOpcode() const;
|
||||||
inline const DebugLoc &getDebugLoc() const;
|
inline const DebugLoc &getDebugLoc() const;
|
||||||
inline void dump(const SelectionDAG *G = nullptr) const;
|
inline void dump() const;
|
||||||
inline void dumpr(const SelectionDAG *G = nullptr) const;
|
inline void dump(const SelectionDAG *G) const;
|
||||||
|
inline void dumpr() const;
|
||||||
|
inline void dumpr(const SelectionDAG *G) const;
|
||||||
|
|
||||||
/// Return true if this operand (which must be a chain) reaches the
|
/// Return true if this operand (which must be a chain) reaches the
|
||||||
/// specified operand without crossing any side-effecting instructions.
|
/// specified operand without crossing any side-effecting instructions.
|
||||||
|
@ -1093,10 +1095,18 @@ inline const DebugLoc &SDValue::getDebugLoc() const {
|
||||||
return Node->getDebugLoc();
|
return Node->getDebugLoc();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void SDValue::dump() const {
|
||||||
|
return Node->dump();
|
||||||
|
}
|
||||||
|
|
||||||
inline void SDValue::dump(const SelectionDAG *G) const {
|
inline void SDValue::dump(const SelectionDAG *G) const {
|
||||||
return Node->dump(G);
|
return Node->dump(G);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void SDValue::dumpr() const {
|
||||||
|
return Node->dumpr();
|
||||||
|
}
|
||||||
|
|
||||||
inline void SDValue::dumpr(const SelectionDAG *G) const {
|
inline void SDValue::dumpr(const SelectionDAG *G) const {
|
||||||
return Node->dumpr(G);
|
return Node->dumpr(G);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue