aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Linker/LinkModules.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-02-19 17:52:37 +0000
committerChris Lattner <sabre@nondot.org>2005-02-19 17:52:37 +0000
commitb9476d9b45025905146f40370056a985f305bc8e (patch)
tree2d5c38c2df9ef1ef04411f361172dbae586a14da /lib/Linker/LinkModules.cpp
parentd12b9b2f8df29b9fccc3a67b2da07099e89e56bf (diff)
downloadexternal_llvm-b9476d9b45025905146f40370056a985f305bc8e.zip
external_llvm-b9476d9b45025905146f40370056a985f305bc8e.tar.gz
external_llvm-b9476d9b45025905146f40370056a985f305bc8e.tar.bz2
Eliminate silly warnings from the linker of the form:
WARNING: Type conflict between types named 'union.._604.'. Src=' %union.._604.'. Dest=' %union.._604.' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20252 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Linker/LinkModules.cpp')
-rw-r--r--lib/Linker/LinkModules.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/lib/Linker/LinkModules.cpp b/lib/Linker/LinkModules.cpp
index 1d9911d..0d65ddd 100644
--- a/lib/Linker/LinkModules.cpp
+++ b/lib/Linker/LinkModules.cpp
@@ -237,19 +237,7 @@ static bool LinkTypes(Module *Dest, const Module *Src, std::string *Err) {
}
// 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();
}