[cfe-commits] r45116 - /cfe/trunk/AST/CFG.cpp

Ted Kremenek kremenek at apple.com
Mon Dec 17 11:35:20 PST 2007


Author: kremenek
Date: Mon Dec 17 13:35:20 2007
New Revision: 45116

URL: http://llvm.org/viewvc/llvm-project?rev=45116&view=rev
Log:
Removed CFG.cpp's dependence on #including iostream.

Modified:
    cfe/trunk/AST/CFG.cpp

Modified: cfe/trunk/AST/CFG.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/AST/CFG.cpp?rev=45116&r1=45115&r2=45116&view=diff

==============================================================================
--- cfe/trunk/AST/CFG.cpp (original)
+++ cfe/trunk/AST/CFG.cpp Mon Dec 17 13:35:20 2007
@@ -19,7 +19,7 @@
 #include "llvm/ADT/DenseMap.h"
 #include "llvm/ADT/SmallPtrSet.h"
 #include "llvm/Support/GraphWriter.h"
-#include <iostream>
+#include "llvm/Support/Streams.h"
 #include <iomanip>
 #include <algorithm>
 #include <sstream>
@@ -1298,7 +1298,7 @@
 } // end anonymous namespace
 
 /// dump - A simple pretty printer of a CFG that outputs to stderr.
-void CFG::dump() const { print(std::cerr); }
+void CFG::dump() const { print(*llvm::cerr.stream()); }
 
 /// print - A simple pretty printer of a CFG that outputs to an ostream.
 void CFG::print(std::ostream& OS) const {
@@ -1322,7 +1322,7 @@
 }  
 
 /// dump - A simply pretty printer of a CFGBlock that outputs to stderr.
-void CFGBlock::dump(const CFG* cfg) const { print(std::cerr, cfg); }
+void CFGBlock::dump(const CFG* cfg) const { print(*llvm::cerr.stream(), cfg); }
 
 /// print - A simple pretty printer of a CFGBlock that outputs to an ostream.
 ///   Generally this will only be called from CFG::print.





More information about the cfe-commits mailing list