Fix printing of VTSDNodes

llvm-svn: 22853
This commit is contained in:
Chris Lattner 2005-08-18 03:31:02 +00:00
parent 70d9c5c340
commit 802080d812
2 changed files with 5 additions and 0 deletions

View File

@ -1891,6 +1891,7 @@ const char *SDNode::getOperationName(const SelectionDAG *G) const {
case ISD::PCMARKER: return "PCMarker";
case ISD::SRCVALUE: return "SrcValue";
case ISD::VALUETYPE: return "ValueType";
case ISD::EntryToken: return "EntryToken";
case ISD::TokenFactor: return "TokenFactor";
case ISD::Constant: return "Constant";
@ -2070,6 +2071,8 @@ void SDNode::dump(const SelectionDAG *G) const {
std::cerr << "<" << M->getValue() << ":" << M->getOffset() << ">";
else
std::cerr << "<null:" << M->getOffset() << ">";
} else if (const VTSDNode *N = dyn_cast<VTSDNode>(this)) {
std::cerr << ":" << getValueTypeString(N->getVT());
}
}

View File

@ -82,6 +82,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
Op += "<" + M->getValue()->getName() + ":" + itostr(M->getOffset()) + ">";
else
Op += "<null:" + itostr(M->getOffset()) + ">";
} else if (const VTSDNode *N = dyn_cast<VTSDNode>(Node)) {
std::cerr << ":" << getValueTypeString(N->getVT());
}
return Op;
}