mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-01 09:18:30 +00:00
For ELF, .comm takes alignment value as the optional 3rd argument. It must be
specified in bytes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26043 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
ad3bc8d8ad
commit
315421e77c
@ -105,7 +105,9 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
|||||||
O << COMMDirective << name << "," << Size;
|
O << COMMDirective << name << "," << Size;
|
||||||
} else {
|
} else {
|
||||||
SwitchSection(".local", I);
|
SwitchSection(".local", I);
|
||||||
O << COMMDirective << name << "," << Size << "," << Align;
|
O << COMMDirective << name << "," << Size;
|
||||||
|
if (COMMDirectiveTakesAlignment)
|
||||||
|
O << "," << (AlignmentIsInBytes ? (1 << Align) : Align);
|
||||||
}
|
}
|
||||||
O << "\t\t" << CommentString << " '" << I->getName() << "'\n";
|
O << "\t\t" << CommentString << " '" << I->getName() << "'\n";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user