diff options
author | Chris Lattner <sabre@nondot.org> | 2005-08-18 03:31:02 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-08-18 03:31:02 +0000 |
commit | a23e8154dc58a62225074bb4eb1633c363ce331b (patch) | |
tree | 59139ae49f05fd95b46fd494d827d70290bf335b /lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 43c3c70b1070ec77d4034d994e44ed2c2f1663e5 (diff) |
Fix printing of VTSDNodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index cb682c1465..f413010185 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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()); } } |