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:
Dale Johannesen 2008-01-17 23:36:04 +00:00
parent 60a9855799
commit 8ef89eabc2
1 changed files with 2 additions and 3 deletions

View File

@ -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);