mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Set the unnamed_addr only when we're creating a new GV in the dest module.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128507 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
5f49c29612
commit
87fa8d12b4
@ -505,6 +505,7 @@ static bool LinkGlobals(Module *Dest, const Module *Src,
|
||||
SGV->getType()->getAddressSpace());
|
||||
// Propagate alignment, visibility and section info.
|
||||
CopyGVAttributes(NewDGV, SGV);
|
||||
NewDGV->setUnnamedAddr(SGV->hasUnnamedAddr());
|
||||
|
||||
// If the LLVM runtime renamed the global, but it is an externally visible
|
||||
// symbol, DGV must be an existing global with internal linkage. Rename
|
||||
|
Loading…
Reference in New Issue
Block a user