llvm.org GIT mirror llvm / 8f10915
Remove unnecessary uses of <iostream>. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101338 91177308-0d34-0410-b5e6-96231b3b80d8 Daniel Dunbar 10 years ago
3 changed file(s) with 5 addition(s) and 7 deletion(s). Raw diff Collapse all Expand all
2121 #include "llvm/Support/CallSite.h"
2222 #include "llvm/Analysis/CallGraph.h"
2323 #include "llvm/Support/raw_ostream.h"
24 #include
2524 using namespace llvm;
2625
2726 namespace {
1818 #include "llvm/Value.h"
1919 #include "llvm/Analysis/CallGraph.h"
2020 #include "llvm/Analysis/Dominators.h"
21 #include
22 #include
21 #include "llvm/Support/raw_ostream.h"
2322 using namespace llvm;
2423
2524 template
26 static void WriteGraphToFile(std::ostream &O, const std::string &GraphName,
25 static void WriteGraphToFile(raw_ostream &O, const std::string &GraphName,
2726 const GraphType >) {
2827 std::string Filename = GraphName + ".dot";
2928 O << "Writing '" << Filename << "'...";
6867 CallGraphPrinter() : ModulePass(&ID) {}
6968
7069 virtual bool runOnModule(Module &M) {
71 WriteGraphToFile(std::cerr, "callgraph", &getAnalysis());
70 WriteGraphToFile(llvm::errs(), "callgraph", &getAnalysis());
7271 return false;
7372 }
7473
1313
1414 #include "llvm/Support/CommandLine.h"
1515 #include "llvm/Support/FileUtilities.h"
16 #include
16 #include "llvm/Support/raw_ostream.h"
1717 using namespace llvm;
1818
1919 namespace {
3636 sys::PathWithStatus(File2),
3737 AbsTolerance, RelTolerance, &ErrorMsg);
3838 if (!ErrorMsg.empty())
39 std::cerr << argv[0] << ": " << ErrorMsg << "\n";
39 errs() << argv[0] << ": " << ErrorMsg << "\n";
4040 return DF;
4141 }
4242