diff options
author | Ted Kremenek <kremenek@apple.com> | 2007-12-17 19:35:20 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2007-12-17 19:35:20 +0000 |
commit | 7e3a89db59513acaf7ecfb51ef8998efbb51a5b8 (patch) | |
tree | 6899579c75c4c21578faab7904a2cd42813b113f | |
parent | 4a33646560c4faf8fb82a681360eb2dc0573d558 (diff) |
Removed CFG.cpp's dependence on #including iostream.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45116 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | AST/CFG.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/AST/CFG.cpp b/AST/CFG.cpp index 43e6870511..1546079c92 100644 --- a/AST/CFG.cpp +++ b/AST/CFG.cpp @@ -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 @@ void print_block(std::ostream& OS, const CFG* cfg, const CFGBlock& B, } // 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 @@ void CFG::print(std::ostream& OS) const { } /// 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. |