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

Bill Wendling isanbard at gmail.com
Tue Nov 28 16:20:25 PST 2006



Changes in directory llvm/include/llvm/Analysis:

CallGraph.h updated: 1.50 -> 1.51
---
Log message:

Replacing std::iostreams with llvm iostreams. Some of these changes involve
adding a temporary wrapper around the ostream to make it friendly to
functions expecting an LLVM stream. This should be fixed in the future.


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

 CallGraph.h |    6 ++++++
 1 files changed, 6 insertions(+)


Index: llvm/include/llvm/Analysis/CallGraph.h
diff -u llvm/include/llvm/Analysis/CallGraph.h:1.50 llvm/include/llvm/Analysis/CallGraph.h:1.51
--- llvm/include/llvm/Analysis/CallGraph.h:1.50	Wed Jul 12 13:29:36 2006
+++ llvm/include/llvm/Analysis/CallGraph.h	Tue Nov 28 18:19:40 2006
@@ -152,6 +152,9 @@
   ///
   void initialize(Module &M);
 
+  void print(llvm_ostream &o, const Module *M) const {
+    if (o.stream()) print(*o.stream(), M);
+  }
   virtual void print(std::ostream &o, const Module *M) const;
   void dump() const;
   
@@ -198,6 +201,9 @@
   /// dump - Print out this call graph node.
   ///
   void dump() const;
+  void print(llvm_ostream &OS) const {
+    if (OS.stream()) print(*OS.stream());
+  }
   void print(std::ostream &OS) const;
 
   //===---------------------------------------------------------------------






More information about the llvm-commits mailing list