mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
Do not override user specified section.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -911,9 +911,9 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
|
||||
unsigned Align = TD->getPreferredAlignmentLog(I);
|
||||
|
||||
if (C->isNullValue() && /* FIXME: Verify correct */
|
||||
!I->hasSection() &&
|
||||
(I->hasInternalLinkage() || I->hasWeakLinkage() ||
|
||||
I->hasLinkOnceLinkage() ||
|
||||
(I->hasExternalLinkage() && !I->hasSection()))) {
|
||||
I->hasLinkOnceLinkage() || I->hasExternalLinkage())) {
|
||||
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
|
||||
if (I->hasExternalLinkage()) {
|
||||
O << "\t.globl " << name << '\n';
|
||||
|
Reference in New Issue
Block a user