From 3576405a260d3e67b7b1330eb854babc6bdd0fa4 Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Wed, 1 Nov 2006 14:26:44 +0000 Subject: [PATCH] print null values in bss llvm-svn: 31349 --- llvm/lib/Target/ARM/ARMAsmPrinter.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp index aa465cc24f8c..96341c534bdb 100644 --- a/llvm/lib/Target/ARM/ARMAsmPrinter.cpp +++ b/llvm/lib/Target/ARM/ARMAsmPrinter.cpp @@ -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";