print null values in bss

llvm-svn: 31349
This commit is contained in:
Rafael Espindola 2006-11-01 14:26:44 +00:00
parent 0cd8d14c7c
commit 3576405a26
1 changed files with 4 additions and 2 deletions

View File

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