diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-18 08:59:16 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2004-06-18 08:59:16 +0000 |
commit | 9d2427c07437a4ad473ff79a4746e08b9e4b87b3 (patch) | |
tree | 815d8503f1adc3c97e2b774d8188379e79ac44ba /lib/Target/Sparc | |
parent | a3c57624c0dbe7c054c42174e98c3811dd7222cf (diff) |
.zero doesn't work in the Solaris assembler.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14231 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/Sparc')
-rw-r--r-- | lib/Target/Sparc/SparcAsmPrinter.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/Target/Sparc/SparcAsmPrinter.cpp b/lib/Target/Sparc/SparcAsmPrinter.cpp index 09d61b7b2d..f8e52472c8 100644 --- a/lib/Target/Sparc/SparcAsmPrinter.cpp +++ b/lib/Target/Sparc/SparcAsmPrinter.cpp @@ -206,10 +206,7 @@ void V8Printer::emitConstantValueOnly(const Constant *CV) { void V8Printer::emitGlobalConstant(const Constant *CV) { const TargetData &TD = TM.getTargetData(); - if (CV->isNullValue()) { - O << "\t.zero\t " << TD.getTypeSize(CV->getType()) << "\n"; - return; - } else if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) { + if (const ConstantArray *CVA = dyn_cast<ConstantArray>(CV)) { if (CVA->isString()) { O << "\t.ascii\t"; printAsCString(O, CVA); @@ -240,7 +237,7 @@ void V8Printer::emitGlobalConstant(const Constant *CV) { // Insert the field padding unless it's zero bytes... if (padSize) - O << "\t.zero\t " << padSize << "\n"; + O << "\t.skip\t " << padSize << "\n"; } assert(sizeSoFar == cvsLayout->StructSize && "Layout of constant struct may be incorrect!"); |