mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Emit .comm alignment in bytes but .align in powers of 2 for ARM ELF.
Original patch by Sandeep Patel and updated by me. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94582 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -282,7 +282,7 @@ void MCAsmStreamer::EmitCommonSymbol(MCSymbol *Symbol, uint64_t Size,
|
||||
unsigned ByteAlignment) {
|
||||
OS << "\t.comm\t" << *Symbol << ',' << Size;
|
||||
if (ByteAlignment != 0) {
|
||||
if (MAI.getAlignmentIsInBytes())
|
||||
if (MAI.getCOMMDirectiveAlignmentIsInBytes())
|
||||
OS << ',' << ByteAlignment;
|
||||
else
|
||||
OS << ',' << Log2_32(ByteAlignment);
|
||||
|
Reference in New Issue
Block a user