summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-01-10 23:52:04 +0000
committerChris Lattner <sabre@nondot.org>2005-01-10 23:52:04 +0000
commitb241b443b62452689fae27016a43415e31e0a7e5 (patch)
tree9edd913b9fb3f3e3d1734d8ddbf8050865ef82d0 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
parent12be02722f840360451f44841d6345ba8d04a2c2 (diff)
downloadbcm5719-llvm-b241b443b62452689fae27016a43415e31e0a7e5.tar.gz
bcm5719-llvm-b241b443b62452689fae27016a43415e31e0a7e5.zip
Add a marker for the graph root.
llvm-svn: 19445
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
index db094a0a120..4a70642c4b5 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp
@@ -32,6 +32,12 @@ namespace llvm {
static std::string getNodeAttributes(const SDNode *N) {
return "shape=Mrecord";
}
+
+ static void addCustomGraphFeatures(SelectionDAG *G,
+ GraphWriter<SelectionDAG*> &GW) {
+ GW.emitSimpleNode(0, "plaintext=circle", "GraphRoot");
+ GW.emitEdge(0, -1, G->getRoot().Val, -1, "");
+ }
};
}
OpenPOWER on IntegriCloud