[llvm-commits] [llvm] r101338 - in /llvm/trunk: tools/opt/AnalysisWrappers.cpp tools/opt/GraphPrinters.cpp utils/fpcmp/fpcmp.cpp
Daniel Dunbar
daniel at zuster.org
Wed Apr 14 20:47:24 PDT 2010
Author: ddunbar
Date: Wed Apr 14 22:47:24 2010
New Revision: 101338
URL: http://llvm.org/viewvc/llvm-project?rev=101338&view=rev
Log:
Remove unnecessary uses of <iostream>.
Modified:
llvm/trunk/tools/opt/AnalysisWrappers.cpp
llvm/trunk/tools/opt/GraphPrinters.cpp
llvm/trunk/utils/fpcmp/fpcmp.cpp
Modified: llvm/trunk/tools/opt/AnalysisWrappers.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/AnalysisWrappers.cpp?rev=101338&r1=101337&r2=101338&view=diff
==============================================================================
--- llvm/trunk/tools/opt/AnalysisWrappers.cpp (original)
+++ llvm/trunk/tools/opt/AnalysisWrappers.cpp Wed Apr 14 22:47:24 2010
@@ -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 {
Modified: llvm/trunk/tools/opt/GraphPrinters.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/opt/GraphPrinters.cpp?rev=101338&r1=101337&r2=101338&view=diff
==============================================================================
--- llvm/trunk/tools/opt/GraphPrinters.cpp (original)
+++ llvm/trunk/tools/opt/GraphPrinters.cpp Wed Apr 14 22:47:24 2010
@@ -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 >) {
std::string Filename = GraphName + ".dot";
O << "Writing '" << Filename << "'...";
@@ -69,7 +68,7 @@
CallGraphPrinter() : ModulePass(&ID) {}
virtual bool runOnModule(Module &M) {
- WriteGraphToFile(std::cerr, "callgraph", &getAnalysis<CallGraph>());
+ WriteGraphToFile(llvm::errs(), "callgraph", &getAnalysis<CallGraph>());
return false;
}
Modified: llvm/trunk/utils/fpcmp/fpcmp.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/fpcmp/fpcmp.cpp?rev=101338&r1=101337&r2=101338&view=diff
==============================================================================
--- llvm/trunk/utils/fpcmp/fpcmp.cpp (original)
+++ llvm/trunk/utils/fpcmp/fpcmp.cpp Wed Apr 14 22:47:24 2010
@@ -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 {
@@ -37,7 +37,7 @@
sys::PathWithStatus(File2),
AbsTolerance, RelTolerance, &ErrorMsg);
if (!ErrorMsg.empty())
- std::cerr << argv[0] << ": " << ErrorMsg << "\n";
+ errs() << argv[0] << ": " << ErrorMsg << "\n";
return DF;
}
More information about the llvm-commits
mailing list