[llvm-commits] CVS: llvm/lib/Target/X86/Printer.cpp

Chris Lattner lattner at cs.uiuc.edu
Wed Sep 10 14:54:10 PDT 2003


Changes in directory llvm/lib/Target/X86:

Printer.cpp updated: 1.60 -> 1.61

---
Log message:

Only emit inter-field-padding if the amount of padding is != 0


---
Diffs of the changes:

Index: llvm/lib/Target/X86/Printer.cpp
diff -u llvm/lib/Target/X86/Printer.cpp:1.60 llvm/lib/Target/X86/Printer.cpp:1.61
--- llvm/lib/Target/X86/Printer.cpp:1.60	Tue Sep  9 11:23:36 2003
+++ llvm/lib/Target/X86/Printer.cpp	Wed Sep 10 14:52:24 2003
@@ -351,7 +351,8 @@
       printConstantValueOnly(field);
 
       // Insert the field padding unless it's zero bytes...
-      O << "\t.zero\t " << padSize << "\n";      
+      if (padSize)
+        O << "\t.zero\t " << padSize << "\n";      
     }
     assert(sizeSoFar == cvsLayout->StructSize &&
            "Layout of constant struct may be incorrect!");





More information about the llvm-commits mailing list