From: Chris Lattner Date: Mon, 10 Jan 2005 23:52:04 +0000 (+0000) Subject: Add a marker for the graph root. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=fc08d9c789b6698fe5f5904d573bb03fcc52a32d;p=oota-llvm.git Add a marker for the graph root. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19445 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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, ""); + } }; }