Replacing std::iostreams with llvm iostreams. Some of these changes involve
[oota-llvm.git] / include / llvm / Analysis / CallGraph.h
index b567bab474f158b2b21991efe482bf5425d08e87..f29aef3a22df3a48e550f3ef855a7827134db80e 100644 (file)
@@ -152,6 +152,9 @@ public:
   ///
   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 @@ public:
   /// 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;
 
   //===---------------------------------------------------------------------