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;
 
   //===---------------------------------------------------------------------



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to