aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-11-29 06:21:05 +0000
committerChris Lattner <sabre@nondot.org>2005-11-29 06:21:05 +0000
commit36ce69195ed488034d0bb11180cc2ebd923679c8 (patch)
tree0233e6a89710fe69222f7d1e3b25bb553df3e45f /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent02fc8ff80091c38760670c2b91e0f487dcc6b8a3 (diff)
Add support for a new STRING and LOCATION node for line number support, patch
contributed by Daniel Berlin, with a few cleanups here and there by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24515 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index bcc5ba23b4..d554a7d392 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -98,7 +98,10 @@ std::string DOTGraphTraits<SelectionDAG*>::getNodeLabel(const SDNode *Node,
Op += "<null:" + itostr(M->getOffset()) + ">";
} else if (const VTSDNode *N = dyn_cast<VTSDNode>(Node)) {
Op = Op + " VT=" + getValueTypeString(N->getVT());
+ } else if (const StringSDNode *N = dyn_cast<StringSDNode>(Node)) {
+ Op = Op + "\"" + N->getValue() + "\"";
}
+
return Op;
}