Skip to content

Commit

Permalink
Remove unnecessary uses of <iostream>.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101338 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
ddunbar committed Apr 15, 2010
1 parent 4c7276a commit 8f10915
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
1 change: 0 additions & 1 deletion tools/opt/AnalysisWrappers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
#include "llvm/Support/CallSite.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Support/raw_ostream.h"
#include <iostream>
using namespace llvm;

namespace {
Expand Down
7 changes: 3 additions & 4 deletions tools/opt/GraphPrinters.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,11 @@
#include "llvm/Value.h"
#include "llvm/Analysis/CallGraph.h"
#include "llvm/Analysis/Dominators.h"
#include <iostream>
#include <fstream>
#include "llvm/Support/raw_ostream.h"
using namespace llvm;

template<typename GraphType>
static void WriteGraphToFile(std::ostream &O, const std::string &GraphName,
static void WriteGraphToFile(raw_ostream &O, const std::string &GraphName,
const GraphType &GT) {
std::string Filename = GraphName + ".dot";
O << "Writing '" << Filename << "'...";
Expand Down Expand Up @@ -69,7 +68,7 @@ namespace {
CallGraphPrinter() : ModulePass(&ID) {}

virtual bool runOnModule(Module &M) {
WriteGraphToFile(std::cerr, "callgraph", &getAnalysis<CallGraph>());
WriteGraphToFile(llvm::errs(), "callgraph", &getAnalysis<CallGraph>());
return false;
}

Expand Down
4 changes: 2 additions & 2 deletions utils/fpcmp/fpcmp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

#include "llvm/Support/CommandLine.h"
#include "llvm/Support/FileUtilities.h"
#include <iostream>
#include "llvm/Support/raw_ostream.h"
using namespace llvm;

namespace {
Expand All @@ -37,7 +37,7 @@ int main(int argc, char **argv) {
sys::PathWithStatus(File2),
AbsTolerance, RelTolerance, &ErrorMsg);
if (!ErrorMsg.empty())
std::cerr << argv[0] << ": " << ErrorMsg << "\n";
errs() << argv[0] << ": " << ErrorMsg << "\n";
return DF;
}

0 comments on commit 8f10915

Please sign in to comment.