Add a version of dumpr() that has a SelectionDAG* argument.

llvm-svn: 82742
This commit is contained in:
Dan Gohman 2009-09-25 00:34:34 +00:00
parent f694f421e1
commit ebdfe4af62
2 changed files with 6 additions and 0 deletions

View File

@ -1295,6 +1295,7 @@ public:
void dump() const;
void dumpr() const;
void dump(const SelectionDAG *G) const;
void dumpr(const SelectionDAG *G) const;
static bool classof(const SDNode *) { return true; }

View File

@ -5726,6 +5726,11 @@ void SDNode::dumpr() const {
DumpNodesr(errs(), this, 0, 0, once);
}
void SDNode::dumpr(const SelectionDAG *G) const {
VisitedSDNodeSet once;
DumpNodesr(errs(), this, 0, G, once);
}
// getAddressSpace - Return the address space this GlobalAddress belongs to.
unsigned GlobalAddressSDNode::getAddressSpace() const {