[llvm-commits] CVS: llvm/include/llvm/Analysis/CallGraph.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 3 18:22:01 PST 2002
Changes in directory llvm/include/llvm/Analysis:
CallGraph.h updated: 1.22 -> 1.23
---
Log message:
Allow the call graph to be called from analyze naturally with print implemented
---
Diffs of the changes:
Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.22 llvm/include/llvm/Analysis/CallGraph.h:1.23
--- llvm/include/llvm/Analysis/CallGraph.h:1.22 Wed Aug 21 12:09:18 2002
+++ llvm/include/llvm/Analysis/CallGraph.h Sun Nov 3 18:21:18 2002
@@ -137,6 +137,12 @@
destroy();
}
+ /// Print the types found in the module. If the optional Module parameter is
+ /// passed in, then the types are printed symbolically if possible, using the
+ /// symbol table from the module.
+ ///
+ void print(std::ostream &o, const Module *M) const;
+
private:
//===---------------------------------------------------------------------
// Implementation of CallGraph construction
@@ -249,22 +255,5 @@
return CGN->getExternalNode();
}
};
-
-
-//===----------------------------------------------------------------------===//
-// Printing support for Call Graphs
-//
-
-// Stuff for printing out a callgraph...
-
-void WriteToOutput(const CallGraph &, std::ostream &o);
-inline std::ostream &operator <<(std::ostream &o, const CallGraph &CG) {
- WriteToOutput(CG, o); return o;
-}
-
-void WriteToOutput(const CallGraphNode *, std::ostream &o);
-inline std::ostream &operator <<(std::ostream &o, const CallGraphNode *CGN) {
- WriteToOutput(CGN, o); return o;
-}
#endif
More information about the llvm-commits
mailing list