diff options
author | Chris Lattner <sabre@nondot.org> | 2005-02-19 17:52:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-02-19 17:52:37 +0000 |
commit | fe723a7c05215500d990c4fb7bc64d25154bd91b (patch) | |
tree | 07f7001a2f21c5234f0c73c4170c746f9ad82e52 /llvm | |
parent | 3d6194f8ccf07c38fbccea4d1efa2d79723f4513 (diff) | |
download | bcm5719-llvm-fe723a7c05215500d990c4fb7bc64d25154bd91b.tar.gz bcm5719-llvm-fe723a7c05215500d990c4fb7bc64d25154bd91b.zip |
Eliminate silly warnings from the linker of the form:
WARNING: Type conflict between types named 'union.._604.'.
Src=' %union.._604.'.
Dest=' %union.._604.'
llvm-svn: 20252
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Linker/LinkModules.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/llvm/lib/Linker/LinkModules.cpp b/llvm/lib/Linker/LinkModules.cpp index 1d9911d669d..0d65ddd1dd9 100644 --- a/llvm/lib/Linker/LinkModules.cpp +++ b/llvm/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(); } |