[llvm-commits] CVS: llvm/lib/Transforms/IPO/FunctionResolution.cpp
Bill Wendling
isanbard at gmail.com
Thu Dec 7 14:22:21 PST 2006
Changes in directory llvm/lib/Transforms/IPO:
FunctionResolution.cpp updated: 1.62 -> 1.63
---
Log message:
What should be the last unnecessary <iostream>s in the library.
---
Diffs of the changes: (+5 -6)
FunctionResolution.cpp | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.62 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.63
--- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.62 Thu Dec 7 14:04:42 2006
+++ llvm/lib/Transforms/IPO/FunctionResolution.cpp Thu Dec 7 16:21:48 2006
@@ -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 @@
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 @@
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 @@
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";
}
}
More information about the llvm-commits
mailing list