summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2006-12-07 22:21:48 +0000
committerBill Wendling <isanbard@gmail.com>2006-12-07 22:21:48 +0000
commit9bfb1e1f29124d62e2290b20e395e76fff6f9a2a (patch)
tree74be612bc2cc5525dbdd5e05705e82ba3fcca8ff /llvm/lib/Transforms
parentf4805ce89acbd92db0f143cbed9d66013e0ec0f3 (diff)
downloadbcm5719-llvm-9bfb1e1f29124d62e2290b20e395e76fff6f9a2a.tar.gz
bcm5719-llvm-9bfb1e1f29124d62e2290b20e395e76fff6f9a2a.zip
What should be the last unnecessary <iostream>s in the library.
llvm-svn: 32333
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/IPO/FunctionResolution.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/IPO/FunctionResolution.cpp b/llvm/lib/Transforms/IPO/FunctionResolution.cpp
index 01d7b5a349e..f6e8cf59134 100644
--- a/llvm/lib/Transforms/IPO/FunctionResolution.cpp
+++ b/llvm/lib/Transforms/IPO/FunctionResolution.cpp
@@ -29,7 +29,6 @@
#include "llvm/Assembly/Writer.h"
#include "llvm/ADT/Statistic.h"
#include <algorithm>
-#include <iostream>
using namespace llvm;
namespace {
@@ -65,9 +64,9 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals,
cerr << "WARNING: Linking function '" << Old->getName()
<< "' is causing arguments to be dropped.\n";
cerr << "WARNING: Prototype: ";
- WriteAsOperand(std::cerr, Old);
+ WriteAsOperand(*cerr.stream(), Old);
cerr << " resolved to ";
- WriteAsOperand(std::cerr, Concrete);
+ WriteAsOperand(*cerr.stream(), Concrete);
cerr << "\n";
}
@@ -84,10 +83,10 @@ static bool ResolveFunctions(Module &M, std::vector<GlobalValue*> &Globals,
ConcreteFT->getParamType(i)->getTypeID()) {
cerr << "WARNING: Function [" << Old->getName()
<< "]: Parameter types conflict for: '";
- WriteTypeSymbolic(std::cerr, OldFT, &M);
+ WriteTypeSymbolic(*cerr.stream(), OldFT, &M);
cerr << "' (in "
<< Old->getParent()->getModuleIdentifier() << ") and '";
- WriteTypeSymbolic(std::cerr, ConcreteFT, &M);
+ WriteTypeSymbolic(*cerr.stream(), ConcreteFT, &M);
cerr << "'(in "
<< Concrete->getParent()->getModuleIdentifier() << ")\n";
return Changed;
@@ -254,7 +253,7 @@ static bool ProcessGlobalsWithSameName(Module &M, TargetData &TD,
cerr << "WARNING: Found global types that are not compatible:\n";
for (unsigned i = 0; i < Globals.size(); ++i) {
cerr << "\t";
- WriteTypeSymbolic(std::cerr, Globals[i]->getType(), &M);
+ WriteTypeSymbolic(*cerr.stream(), Globals[i]->getType(), &M);
cerr << " %" << Globals[i]->getName() << "\n";
}
}
OpenPOWER on IntegriCloud