Add a marker for the graph root.
authorChris Lattner <sabre@nondot.org>
Mon, 10 Jan 2005 23:52:04 +0000 (23:52 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Jan 2005 23:52:04 +0000 (23:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19445 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGPrinter.cpp

index db094a0a1201097faf595352b39620ee22991a03..4a70642c4b56b39ea77953ce66d324bdf420ed90 100644 (file)
@@ -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, "");
+    }
   };
 }