diff options
author | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:46:12 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2006-11-28 22:46:12 +0000 |
commit | 597d451feace38e5847a26719eafd93db3d82684 (patch) | |
tree | 385230cc6dbe4b5773e0cc571ea71ff5c9e6882a /llvm/lib/Analysis/CFGPrinter.cpp | |
parent | a60d8edfc9459b1c63e8efb017ee3b371de50ced (diff) | |
download | bcm5719-llvm-597d451feace38e5847a26719eafd93db3d82684.tar.gz bcm5719-llvm-597d451feace38e5847a26719eafd93db3d82684.zip |
Removed some of the iostream #includes. Moved towards converting to using
llvm streams
llvm-svn: 31983
Diffstat (limited to 'llvm/lib/Analysis/CFGPrinter.cpp')
-rw-r--r-- | llvm/lib/Analysis/CFGPrinter.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/CFGPrinter.cpp b/llvm/lib/Analysis/CFGPrinter.cpp index 9dc4ba639c7..3f6846e1f6e 100644 --- a/llvm/lib/Analysis/CFGPrinter.cpp +++ b/llvm/lib/Analysis/CFGPrinter.cpp @@ -25,7 +25,7 @@ #include "llvm/Support/CFG.h" #include "llvm/Support/GraphWriter.h" #include "llvm/Config/config.h" -#include <iostream> +#include <iosfwd> #include <sstream> #include <fstream> using namespace llvm; @@ -92,14 +92,14 @@ namespace { struct CFGPrinter : public FunctionPass { virtual bool runOnFunction(Function &F) { std::string Filename = "cfg." + F.getName() + ".dot"; - std::cerr << "Writing '" << Filename << "'..."; + llvm_cerr << "Writing '" << Filename << "'..."; std::ofstream File(Filename.c_str()); if (File.good()) WriteGraph(File, (const Function*)&F); else - std::cerr << " error opening file for writing!"; - std::cerr << "\n"; + llvm_cerr << " error opening file for writing!"; + llvm_cerr << "\n"; return false; } |