mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-05-19 13:38:56 +00:00
Fix linkage of mismatched weak globals. This unbreaks 300.twolf
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18494 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3149ba7a65
commit
c8ef1edc63
@ -531,6 +531,8 @@ static bool LinkGlobals(Module *Dest, Module *Src,
|
|||||||
else
|
else
|
||||||
DGV->setConstant(true);
|
DGV->setConstant(true);
|
||||||
}
|
}
|
||||||
|
SGV->setLinkage(GlobalValue::ExternalLinkage);
|
||||||
|
SGV->setInitializer(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
ValueMap.insert(std::make_pair(SGV,
|
ValueMap.insert(std::make_pair(SGV,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user