mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-10 02:36:06 +00:00
Fix printing of VTSDNodes
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
43c3c70b10
commit
a23e8154dc
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user