[llvm-commits] CVS: llvm/include/llvm/Analysis/CallGraph.h

Chris Lattner lattner at cs.uiuc.edu
Sat Aug 7 20:27:52 PDT 2004



Changes in directory llvm/include/llvm/Analysis:

CallGraph.h updated: 1.37 -> 1.38
---
Log message:

Add standard print/dump methods to CallGraph classes.


---
Diffs of the changes:  (+8 -0)

Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.37 llvm/include/llvm/Analysis/CallGraph.h:1.38
--- llvm/include/llvm/Analysis/CallGraph.h:1.37	Sun May  2 11:06:40 2004
+++ llvm/include/llvm/Analysis/CallGraph.h	Sat Aug  7 22:27:39 2004
@@ -166,6 +166,10 @@
   ///
   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 @@
   //
   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






More information about the llvm-commits mailing list