mirror of
https://github.com/RPCS3/llvm.git
synced 2025-04-12 02:47:10 +00:00
Remove unnecessary uses of <iostream>.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@101338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c7276a4eb
commit
8f10915145
@ -22,7 +22,6 @@
|
|||||||
#include "llvm/Support/CallSite.h"
|
#include "llvm/Support/CallSite.h"
|
||||||
#include "llvm/Analysis/CallGraph.h"
|
#include "llvm/Analysis/CallGraph.h"
|
||||||
#include "llvm/Support/raw_ostream.h"
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include <iostream>
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
|
@ -19,12 +19,11 @@
|
|||||||
#include "llvm/Value.h"
|
#include "llvm/Value.h"
|
||||||
#include "llvm/Analysis/CallGraph.h"
|
#include "llvm/Analysis/CallGraph.h"
|
||||||
#include "llvm/Analysis/Dominators.h"
|
#include "llvm/Analysis/Dominators.h"
|
||||||
#include <iostream>
|
#include "llvm/Support/raw_ostream.h"
|
||||||
#include <fstream>
|
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
template<typename GraphType>
|
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 >) {
|
const GraphType >) {
|
||||||
std::string Filename = GraphName + ".dot";
|
std::string Filename = GraphName + ".dot";
|
||||||
O << "Writing '" << Filename << "'...";
|
O << "Writing '" << Filename << "'...";
|
||||||
@ -69,7 +68,7 @@ namespace {
|
|||||||
CallGraphPrinter() : ModulePass(&ID) {}
|
CallGraphPrinter() : ModulePass(&ID) {}
|
||||||
|
|
||||||
virtual bool runOnModule(Module &M) {
|
virtual bool runOnModule(Module &M) {
|
||||||
WriteGraphToFile(std::cerr, "callgraph", &getAnalysis<CallGraph>());
|
WriteGraphToFile(llvm::errs(), "callgraph", &getAnalysis<CallGraph>());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
|
|
||||||
#include "llvm/Support/CommandLine.h"
|
#include "llvm/Support/CommandLine.h"
|
||||||
#include "llvm/Support/FileUtilities.h"
|
#include "llvm/Support/FileUtilities.h"
|
||||||
#include <iostream>
|
#include "llvm/Support/raw_ostream.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
@ -37,7 +37,7 @@ int main(int argc, char **argv) {
|
|||||||
sys::PathWithStatus(File2),
|
sys::PathWithStatus(File2),
|
||||||
AbsTolerance, RelTolerance, &ErrorMsg);
|
AbsTolerance, RelTolerance, &ErrorMsg);
|
||||||
if (!ErrorMsg.empty())
|
if (!ErrorMsg.empty())
|
||||||
std::cerr << argv[0] << ": " << ErrorMsg << "\n";
|
errs() << argv[0] << ": " << ErrorMsg << "\n";
|
||||||
return DF;
|
return DF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user