[llvm-commits] CVS: llvm/lib/Target/Sparc/EmitAssembly.cpp

Chris Lattner lattner at cs.uiuc.edu
Sat Feb 14 23:56:24 PST 2004


Changes in directory llvm/lib/Target/Sparc:

EmitAssembly.cpp updated: 1.106 -> 1.107

---
Log message:

Adjustments to support the new ConstantAggregateZero class


---
Diffs of the changes:  (+3 -2)

Index: llvm/lib/Target/Sparc/EmitAssembly.cpp
diff -u llvm/lib/Target/Sparc/EmitAssembly.cpp:1.106 llvm/lib/Target/Sparc/EmitAssembly.cpp:1.107
--- llvm/lib/Target/Sparc/EmitAssembly.cpp:1.106	Fri Feb 13 15:01:20 2004
+++ llvm/lib/Target/Sparc/EmitAssembly.cpp	Sat Feb 14 23:55:07 2004
@@ -387,8 +387,9 @@
     }
     assert(sizeSoFar == cvsLayout->StructSize &&
            "Layout of constant struct may be incorrect!");
-  }
-  else
+  } else if (isa<ConstantAggregateZero>(CV)) {
+    PrintZeroBytesToPad(Target.getTargetData().getTypeSize(CV->getType()));
+  } else
     printSingleConstantValue(CV);
 
   if (numPadBytesAfter)





More information about the llvm-commits mailing list