Add standard print/dump methods to CallGraph classes.
[oota-llvm.git] / include / llvm / Analysis / CallGraph.h
index 901100dd1f1111448e526f2278389fe6c6cb7f8d..86a2b53ad491046d91c49fce5eec8498ebd5861a 100644 (file)
@@ -166,6 +166,10 @@ public:
   ///
   void print(std::ostream &o, const Module *M) const;
 
+  /// dump - Print out this call graph.
+  ///
+  void dump() const;
+
   // stub - dummy function, just ignore it
   static void stub();
 private:
@@ -217,6 +221,10 @@ public:
   //
   CallGraphNode *operator[](unsigned i) const { return CalledFunctions[i];}
 
+  /// dump - Print out this call graph node.
+  ///
+  void dump() const;
+  void print(std::ostream &OS) const;
 
   //===---------------------------------------------------------------------
   // Methods to keep a call graph up to date with a function that has been