mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
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
This commit is contained in:
parent
1446120628
commit
042a54de90
@ -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.
|
// 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) {
|
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.
|
// Remove the symbol name from the destination.
|
||||||
DelayedTypesToResolve.pop_back();
|
DelayedTypesToResolve.pop_back();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user