print null values in bss

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31349 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola 2006-11-01 14:26:44 +00:00
parent 9dca7ad78f
commit 560a8d0512

View File

@ -303,8 +303,10 @@ bool ARMAsmPrinter::doFinalization(Module &M) {
break;
}
assert (!C->isNullValue());
SwitchToDataSection(".data", I);
if (C->isNullValue())
SwitchToDataSection(".bss", I);
else
SwitchToDataSection(".data", I);
EmitAlignment(Align, I);
O << "\t.type " << name << ", %object\n";