summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-09 04:08:27 +0000
committerChris Lattner <sabre@nondot.org>2005-05-09 04:08:27 +0000
commit9440d6e260141c7a6a9b5c37c973f0b4a2d5b8c1 (patch)
tree706a7e003db2047ca0e48382f9b73663c8e5295c /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent6972c31ab59e96ee1cb1708cb6928ac650e1bd81 (diff)
downloadbcm5719-llvm-9440d6e260141c7a6a9b5c37c973f0b4a2d5b8c1.tar.gz
bcm5719-llvm-9440d6e260141c7a6a9b5c37c973f0b4a2d5b8c1.zip
Print SrcValue nodes correctly
llvm-svn: 21803
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
index f4d7adcc4ed..965976cce3d 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
@@ -1554,6 +1554,7 @@ const char *SDNode::getOperationName() const {
switch (getOpcode()) {
default: return "<<Unknown>>";
case ISD::PCMARKER: return "PCMarker";
+ case ISD::SRCVALUE: return "SrcValue";
case ISD::EntryToken: return "EntryToken";
case ISD::TokenFactor: return "TokenFactor";
case ISD::Constant: return "Constant";
@@ -1712,6 +1713,11 @@ void SDNode::dump() const {
std::cerr << "'" << ES->getSymbol() << "'";
} else if (const MVTSDNode *M = dyn_cast<MVTSDNode>(this)) {
std::cerr << " - Ty = " << MVT::getValueTypeString(M->getExtraValueType());
+ } else if (const SrcValueSDNode *M = dyn_cast<SrcValueSDNode>(this)) {
+ if (M->getValue())
+ std::cerr << "<" << M->getValue() << ":" << M->getOffset() << ">";
+ else
+ std::cerr << "<null:" << M->getOffset() << ">";
}
}
OpenPOWER on IntegriCloud