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.

llvm-svn: 16006
This commit is contained in:
Chris Lattner 2004-08-24 00:26:11 +00:00
parent 069b8ec2f4
commit 05d5a44c02

View File

@ -46,12 +46,6 @@ void AsmPrinter::emitZeros(unsigned NumZeros) const {
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";
}