aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-24 00:26:11 +0000
committerChris Lattner <sabre@nondot.org>2004-08-24 00:26:11 +0000
commit7af2865fc6f15e7c94b1bee5cf04116a2f09c296 (patch)
tree77376b26ae9b106af1323b4efb2155a807818999 /lib/CodeGen/AsmPrinter.cpp
parent7d837d152d80ccd6f308954a5874b3b1d6a9428d (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16006 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/CodeGen/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter.cpp
index 79580294a6..11565dff0b 100644
--- a/lib/CodeGen/AsmPrinter.cpp
+++ b/lib/CodeGen/AsmPrinter.cpp
@@ -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";
}