mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-10 06:00:30 +00:00
Revert the part of 45849 that treated weak globals
as weak globals rather than commons. While not wrong, this change tickled a latent bug in Darwin's strip, so revert it for now as a workaround. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d15d086956
commit
25a0195114
@ -845,9 +845,8 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (I->hasInternalLinkage() ||
|
if (I->hasInternalLinkage() || I->hasWeakLinkage() ||
|
||||||
(!Subtarget->isTargetDarwin() &&
|
I->hasLinkOnceLinkage()) {
|
||||||
(I->hasWeakLinkage() || I->hasLinkOnceLinkage()))) {
|
|
||||||
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
|
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
|
||||||
if (!NoZerosInBSS && TAI->getBSSSection())
|
if (!NoZerosInBSS && TAI->getBSSSection())
|
||||||
SwitchToDataSection(TAI->getBSSSection(), I);
|
SwitchToDataSection(TAI->getBSSSection(), I);
|
||||||
|
Loading…
Reference in New Issue
Block a user