summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2018-03-18 21:28:11 +0000
committerCraig Topper <craig.topper@intel.com>2018-03-18 21:28:11 +0000
commitf7fdfb3fb6318fd032e9335a4f40275c7da1b1c2 (patch)
tree2aecf8695c2c22fb733d06a83d88110348dc3555
parentc4d65751df2e899201c8ad6f1650aa8532222f2b (diff)
downloadbcm5719-llvm-f7fdfb3fb6318fd032e9335a4f40275c7da1b1c2.tar.gz
bcm5719-llvm-f7fdfb3fb6318fd032e9335a4f40275c7da1b1c2.zip
[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
-rw-r--r--llvm/include/llvm/CodeGen/SelectionDAGNodes.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
index 557d93937f5..ebca251139d 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAGNodes.h
@@ -189,8 +189,10 @@ public:
inline bool isUndef() const;
inline unsigned getMachineOpcode() const;
inline const DebugLoc &getDebugLoc() const;
- inline void dump(const SelectionDAG *G = nullptr) const;
- inline void dumpr(const SelectionDAG *G = nullptr) const;
+ inline void dump() 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
/// specified operand without crossing any side-effecting instructions.
@@ -1093,10 +1095,18 @@ inline const DebugLoc &SDValue::getDebugLoc() const {
return Node->getDebugLoc();
}
+inline void SDValue::dump() const {
+ return Node->dump();
+}
+
inline void SDValue::dump(const SelectionDAG *G) const {
return Node->dump(G);
}
+inline void SDValue::dumpr() const {
+ return Node->dumpr();
+}
+
inline void SDValue::dumpr(const SelectionDAG *G) const {
return Node->dumpr(G);
}
OpenPOWER on IntegriCloud