[llvm-commits] CVS: llvm/lib/Analysis/IPA/CallGraph.cpp

Bill Wendling isanbard at gmail.com
Sat Dec 16 21:15:53 PST 2006



Changes in directory llvm/lib/Analysis/IPA:

CallGraph.cpp updated: 1.62 -> 1.63
---
Log message:

Added an automatic cast to "std::ostream*" etc. from OStream. We then can
rework the hacks that had us passing OStream in. We pass in std::ostream*
instead, check for null, and then dispatch to the correct print() method.


---
Diffs of the changes:  (+2 -2)

 CallGraph.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Analysis/IPA/CallGraph.cpp
diff -u llvm/lib/Analysis/IPA/CallGraph.cpp:1.62 llvm/lib/Analysis/IPA/CallGraph.cpp:1.63
--- llvm/lib/Analysis/IPA/CallGraph.cpp:1.62	Wed Dec  6 19:30:31 2006
+++ llvm/lib/Analysis/IPA/CallGraph.cpp	Sat Dec 16 23:15:12 2006
@@ -74,8 +74,8 @@
     AU.setPreservesAll();
   }
 
-  void print(OStream &o, const Module *M) const {
-    if (o.stream()) print(*o.stream(), M);
+  void print(std::ostream *o, const Module *M) const {
+    if (o) print(*o, M);
   }
 
   virtual void print(std::ostream &o, const Module *M) const {






More information about the llvm-commits mailing list