diff options
| author | Dale Johannesen <dalej@apple.com> | 2008-01-17 23:36:04 +0000 |
|---|---|---|
| committer | Dale Johannesen <dalej@apple.com> | 2008-01-17 23:36:04 +0000 |
| commit | 25a0195114c4fa1e22a7b71b6d80aef48d537b7d (patch) | |
| tree | e88a632d03f98ec542129f13775936eb4653b151 /lib/Target | |
| parent | d15d086956f0b9fabd95d729023468e068e930c9 (diff) | |
| download | external_llvm-25a0195114c4fa1e22a7b71b6d80aef48d537b7d.zip external_llvm-25a0195114c4fa1e22a7b71b6d80aef48d537b7d.tar.gz external_llvm-25a0195114c4fa1e22a7b71b6d80aef48d537b7d.tar.bz2 | |
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
Diffstat (limited to 'lib/Target')
| -rw-r--r-- | lib/Target/ARM/ARMAsmPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/ARM/ARMAsmPrinter.cpp b/lib/Target/ARM/ARMAsmPrinter.cpp index 4cea342..416084a 100644 --- a/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/lib/Target/ARM/ARMAsmPrinter.cpp @@ -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); |
