Implement a new method "viewGraph" which can be used to instantly view a graph from...
authorChris Lattner <sabre@nondot.org>
Mon, 10 Feb 2003 18:17:38 +0000 (18:17 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 10 Feb 2003 18:17:38 +0000 (18:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5529 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraph.h
include/llvm/Analysis/DataStructure/DSGraph.h

index 6f81d089f46403b55d2ce4e7b5c15e61ebd663fe..80c6bd4f6b5c8df22085ae6646b95bbb58810f4a 100644 (file)
@@ -118,8 +118,17 @@ public:
     return Nodes.size();
   }
 
+  /// print - Print a dot graph to the specified ostream...
   void print(std::ostream &O) const;
+
+  /// dump - call print(std::cerr), for use from the debugger...
+  ///
   void dump() const;
+
+  /// viewGraph - Emit a dot graph, run 'dot', run gv on the postscript file,
+  /// then cleanup.  For use from the debugger.
+  void viewGraph() const;
+
   void writeGraphToFile(std::ostream &O, const std::string &GraphName) const;
 
   /// maskNodeTypes - Apply a mask to all of the node types in the graph.  This
index 6f81d089f46403b55d2ce4e7b5c15e61ebd663fe..80c6bd4f6b5c8df22085ae6646b95bbb58810f4a 100644 (file)
@@ -118,8 +118,17 @@ public:
     return Nodes.size();
   }
 
+  /// print - Print a dot graph to the specified ostream...
   void print(std::ostream &O) const;
+
+  /// dump - call print(std::cerr), for use from the debugger...
+  ///
   void dump() const;
+
+  /// viewGraph - Emit a dot graph, run 'dot', run gv on the postscript file,
+  /// then cleanup.  For use from the debugger.
+  void viewGraph() const;
+
   void writeGraphToFile(std::ostream &O, const std::string &GraphName) const;
 
   /// maskNodeTypes - Apply a mask to all of the node types in the graph.  This