forked from OSchip/llvm-project
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. llvm-svn: 46147
This commit is contained in:
parent
60a9855799
commit
8ef89eabc2
|
@ -845,9 +845,8 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
|
|||
}
|
||||
}
|
||||
|
||||
if (I->hasInternalLinkage() ||
|
||||
(!Subtarget->isTargetDarwin() &&
|
||||
(I->hasWeakLinkage() || I->hasLinkOnceLinkage()))) {
|
||||
if (I->hasInternalLinkage() || I->hasWeakLinkage() ||
|
||||
I->hasLinkOnceLinkage()) {
|
||||
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
|
||||
if (!NoZerosInBSS && TAI->getBSSSection())
|
||||
SwitchToDataSection(TAI->getBSSSection(), I);
|
||||
|
|
Loading…
Reference in New Issue