aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/Target/SparcV9/SparcV9AsmPrinter.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
index 6c7ebaa99c..3d35ecc91a 100644
--- a/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
+++ b/lib/Target/SparcV9/SparcV9AsmPrinter.cpp
@@ -438,7 +438,7 @@ SparcAsmPrinter::printConstant(const ConstPoolVal* CV, string valID)
if (! CPP->isNullValue())
assert(0 && "Cannot yet print non-null pointer constants to assembly");
else
- toAsm << (void*) NULL;
+ toAsm << (void*) NULL << endl;
}
else if (ConstPoolPointerRef* CPRef = dyn_cast<ConstPoolPointerRef>(CV))
{
@@ -464,11 +464,10 @@ SparcAsmPrinter::printGlobalVariable(const GlobalVariable* GV)
if (GV->hasInitializer())
printConstant(GV->getInitializer(), getID(GV));
else {
- toAsm << "\t.align" << TypeToAlignment(GV->getType()->getValueType(), Target)
- << getID(GV) << ":" << endl;
-
- toAsm << "\t.type" << "\t" << getID(GV) << ",#object" << endl;
- toAsm << "\t.size" << "\t" << getID(GV) << ","
+ toAsm << "\t.align\t"
+ << TypeToAlignment(GV->getType()->getValueType(), Target) << endl;
+ toAsm << "\t.type\t" << getID(GV) << ",#object" << endl;
+ toAsm << "\t.reserve\t" << getID(GV) << ","
<< TypeToSize(GV->getType()->getValueType(), Target)
<< endl;
}