mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 06:33:24 +00:00
Fix Regression/CodeGen/PowerPC/2004-12-12-ZeroSizeCommon.ll, and all programs
when compiled with debug information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18835 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
081da56e9e
commit
869f45937b
@ -471,6 +471,7 @@ bool DarwinAsmPrinter::doFinalization(Module &M) {
|
||||
(I->hasInternalLinkage() || I->hasWeakLinkage() ||
|
||||
I->hasLinkOnceLinkage())) {
|
||||
SwitchSection(O, CurSection, ".data");
|
||||
if (Size == 0) Size = 1; // .comm Foo, 0 is undefined, avoid it.
|
||||
if (I->hasInternalLinkage())
|
||||
O << ".lcomm " << name << "," << Size << "," << Align;
|
||||
else
|
||||
|
Loading…
x
Reference in New Issue
Block a user