[llvm-commits] CVS: llvm/lib/Target/X86/X86AsmPrinter.cpp
Evan Cheng
evan.cheng at apple.com
Tue Feb 7 13:54:21 PST 2006
Changes in directory llvm/lib/Target/X86:
X86AsmPrinter.cpp updated: 1.161 -> 1.162
---
Log message:
For ELF, .comm takes alignment value as the optional 3rd argument. It must be
specified in bytes.
---
Diffs of the changes: (+3 -1)
X86AsmPrinter.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/Target/X86/X86AsmPrinter.cpp
diff -u llvm/lib/Target/X86/X86AsmPrinter.cpp:1.161 llvm/lib/Target/X86/X86AsmPrinter.cpp:1.162
--- llvm/lib/Target/X86/X86AsmPrinter.cpp:1.161 Tue Feb 7 02:38:37 2006
+++ llvm/lib/Target/X86/X86AsmPrinter.cpp Tue Feb 7 15:54:08 2006
@@ -105,7 +105,9 @@
O << COMMDirective << name << "," << Size;
} else {
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";
} else {
More information about the llvm-commits
mailing list