Removed some of the iostream #includes. Moved towards converting to using

llvm streams


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31983 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling
2006-11-28 22:46:12 +00:00
parent c0ac317f93
commit 6f81b51021
12 changed files with 143 additions and 89 deletions
+4 -4
View File
@@ -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;
}