[llvm-commits] CVS: llvm/lib/Linker/LinkModules.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Feb 19 09:52:52 PST 2005
Changes in directory llvm/lib/Linker:
LinkModules.cpp updated: 1.102 -> 1.103
---
Log message:
Eliminate silly warnings from the linker of the form:
WARNING: Type conflict between types named 'union.._604.'.
Src=' %union.._604.'.
Dest=' %union.._604.'
---
Diffs of the changes: (+0 -12)
LinkModules.cpp | 12 ------------
1 files changed, 12 deletions(-)
Index: llvm/lib/Linker/LinkModules.cpp
diff -u llvm/lib/Linker/LinkModules.cpp:1.102 llvm/lib/Linker/LinkModules.cpp:1.103
--- llvm/lib/Linker/LinkModules.cpp:1.102 Sat Feb 12 13:20:28 2005
+++ llvm/lib/Linker/LinkModules.cpp Sat Feb 19 11:52:37 2005
@@ -237,19 +237,7 @@
}
// If we STILL cannot resolve the types, then there is something wrong.
- // Report the warning and delete one of the names.
if (DelayedTypesToResolve.size() == OldSize) {
- const std::string &Name = DelayedTypesToResolve.back();
-
- const Type *T1 = SrcST->lookupType(Name);
- const Type *T2 = DestST->lookupType(Name);
- std::cerr << "WARNING: Type conflict between types named '" << Name
- << "'.\n Src='";
- WriteTypeSymbolic(std::cerr, T1, Src);
- std::cerr << "'.\n Dest='";
- WriteTypeSymbolic(std::cerr, T2, Dest);
- std::cerr << "'\n";
-
// Remove the symbol name from the destination.
DelayedTypesToResolve.pop_back();
}
More information about the llvm-commits
mailing list