Print extra type for nodes with extra type info.

llvm-svn: 19575
This commit is contained in:
Chris Lattner 2005-01-15 21:11:37 +00:00
parent a2071f1247
commit 630d1937bf
2 changed files with 4 additions and 0 deletions

View File

@ -1123,6 +1123,8 @@ void SDNode::dump() const {
} else if (const ExternalSymbolSDNode *ES =
dyn_cast<ExternalSymbolSDNode>(this)) {
std::cerr << "'" << ES->getSymbol() << "'";
} else if (const MVTSDNode *M = dyn_cast<MVTSDNode>(this)) {
std::cerr << " - Ty = " << MVT::getValueTypeString(M->getExtraValueType());
}
}

View File

@ -90,6 +90,8 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
} else if (const ExternalSymbolSDNode *ES =
dyn_cast<ExternalSymbolSDNode>(Node)) {
Op += "'" + std::string(ES->getSymbol()) + "'";
} else if (const MVTSDNode *M = dyn_cast<MVTSDNode>(Node)) {
Op = Op + "ty=" + MVT::getValueTypeString(M->getExtraValueType());
}
return Op;
}