mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-25 16:24:23 +00:00
Ignore functions with internal linkages during linking. This snipped mimics the
behaviour of LinkGlobals() function. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45375 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -663,6 +663,9 @@ static bool LinkFunctionProtos(Module *Dest, const Module *Src,
|
|||||||
"': symbols have different visibilities!");
|
"': symbols have different visibilities!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (DF && DF->hasInternalLinkage())
|
||||||
|
DF = NULL;
|
||||||
|
|
||||||
if (DF && DF->getType() != SF->getType()) {
|
if (DF && DF->getType() != SF->getType()) {
|
||||||
if (DF->isDeclaration() && !SF->isDeclaration()) {
|
if (DF->isDeclaration() && !SF->isDeclaration()) {
|
||||||
// We have a definition of the same name but different type in the
|
// We have a definition of the same name but different type in the
|
||||||
|
Reference in New Issue
Block a user