[llvm-commits] CVS: llvm/lib/Transforms/IPO/FunctionResolution.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 20 12:20:01 PST 2003
Changes in directory llvm/lib/Transforms/IPO:
FunctionResolution.cpp updated: 1.43 -> 1.44
---
Log message:
When spewing out warnings during function resolution, do not vomit out pages
and pages of non-symbolic types.
---
Diffs of the changes: (+8 -4)
Index: llvm/lib/Transforms/IPO/FunctionResolution.cpp
diff -u llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.43 llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.44
--- llvm/lib/Transforms/IPO/FunctionResolution.cpp:1.43 Tue Nov 11 16:41:33 2003
+++ llvm/lib/Transforms/IPO/FunctionResolution.cpp Thu Nov 20 12:19:35 2003
@@ -82,8 +82,11 @@
if (OldMT->getParamTypes()[i]->getPrimitiveID() !=
ConcreteMT->getParamTypes()[i]->getPrimitiveID()) {
std::cerr << "WARNING: Function [" << Old->getName()
- << "]: Parameter types conflict for: '" << OldMT
- << "' and '" << ConcreteMT << "'\n";
+ << "]: Parameter types conflict for: '";
+ WriteTypeSymbolic(std::cerr, OldMT, &M);
+ std::cerr << "' and '";
+ WriteTypeSymbolic(std::cerr, ConcreteMT, &M);
+ std::cerr << "'\n";
return Changed;
}
@@ -227,8 +230,9 @@
if (!DontPrintWarning) {
std::cerr << "WARNING: Found global types that are not compatible:\n";
for (unsigned i = 0; i < Globals.size(); ++i) {
- std::cerr << "\t" << *Globals[i]->getType() << " %"
- << Globals[i]->getName() << "\n";
+ std::cerr << "\t";
+ WriteTypeSymbolic(std::cerr, Globals[i]->getType(), &M);
+ std::cerr << " %" << Globals[i]->getName() << "\n";
}
}
More information about the llvm-commits
mailing list