[llvm-commits] CVS: llvm/lib/CodeGen/AsmPrinter.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Aug 23 17:26:23 PDT 2004
Changes in directory llvm/lib/CodeGen:
AsmPrinter.cpp updated: 1.9 -> 1.10
---
Log message:
Do not use .xword and friends to emit zeros on V9. Apparently there are issues
with emitting .xwords when not on an 8-byte boundary (.xword 0 is not the
same as 8 .byte 0's). Because we do not know when or when we are not aligned,
just emit bytes like the old V9 asmprinter did.
---
Diffs of the changes: (+0 -6)
Index: llvm/lib/CodeGen/AsmPrinter.cpp
diff -u llvm/lib/CodeGen/AsmPrinter.cpp:1.9 llvm/lib/CodeGen/AsmPrinter.cpp:1.10
--- llvm/lib/CodeGen/AsmPrinter.cpp:1.9 Tue Aug 17 21:22:44 2004
+++ llvm/lib/CodeGen/AsmPrinter.cpp Mon Aug 23 19:26:11 2004
@@ -46,12 +46,6 @@
if (ZeroDirective)
O << ZeroDirective << NumZeros << "\n";
else {
- if (NumZeros >= 8 && Data64bitsDirective) {
- for (; NumZeros >= 8; NumZeros -= 8)
- O << Data64bitsDirective << "0\n";
- }
- for (; NumZeros >= 4; NumZeros -= 4)
- O << Data32bitsDirective << "0\n";
for (; NumZeros; --NumZeros)
O << Data8bitsDirective << "0\n";
}
More information about the llvm-commits
mailing list