diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-10 23:52:04 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-10 23:52:04 +0000 |
commit | fc08d9c789b6698fe5f5904d573bb03fcc52a32d (patch) | |
tree | f882d8a3b86919448037bbcfff12d0d1c04d8634 /lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | |
parent | e0646b86e3cdc35c5dd0e1c10b7ac564066e3bd6 (diff) |
Add a marker for the graph root.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19445 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index db094a0a12..4a70642c4b 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp +++ b/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, ""); + } }; } |