From fc08d9c789b6698fe5f5904d573bb03fcc52a32d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 10 Jan 2005 23:52:04 +0000 Subject: [PATCH] Add a marker for the graph root. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19445 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp index db094a0a120..4a70642c4b5 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 &GW) { + GW.emitSimpleNode(0, "plaintext=circle", "GraphRoot"); + GW.emitEdge(0, -1, G->getRoot().Val, -1, ""); + } }; } -- 2.34.1