mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Ignore functions with internal linkages during linking. This snipped mimics the
behaviour of LinkGlobals() function. llvm-svn: 45375
This commit is contained in:
parent
86e98275ff
commit
f12327cd32
@ -663,6 +663,9 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
||||
"': symbols have different visibilities!");
|
||||
}
|
||||
|
||||
if (DF && DF->hasInternalLinkage())
|
||||
DF = NULL;
|
||||
|
||||
if (DF && DF->getType() != SF->getType()) {
|
||||
if (DF->isDeclaration() && !SF->isDeclaration()) {
|
||||
// We have a definition of the same name but different type in the
|
||||
|
Loading…
Reference in New Issue
Block a user