Darwin doesn't support .bss, but it does have .zerofill
authorEvan Cheng <evan.cheng@apple.com>
Fri, 19 Jan 2007 19:23:47 +0000 (19:23 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Fri, 19 Jan 2007 19:23:47 +0000 (19:23 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33364 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMTargetAsmInfo.cpp

index d70ef6d9013d71eaa31b5bfeac6bdef4a85f5145..8c4acdd8d996dbbc940e1d305f645d32ac41b073 100644 (file)
@@ -17,21 +17,23 @@ using namespace llvm;
 
 ARMTargetAsmInfo::ARMTargetAsmInfo(const ARMTargetMachine &TM) {
   const ARMSubtarget *Subtarget = &TM.getSubtarget<ARMSubtarget>();
-  if (Subtarget->isDarwin()) {
-    HasDotTypeDotSizeDirective = false;
-    PrivateGlobalPrefix = "L";
+  if (Subtarget->isTargetDarwin()) {
     GlobalPrefix = "_";
     ZeroDirective = "\t.space\t";
+    PrivateGlobalPrefix = "L";
+    BSSSection = 0;                       // no BSS section.
+    ZeroFillDirective = "\t.zerofill\t";  // Uses .zerofill
     SetDirective = "\t.set";
     WeakRefDirective = "\t.weak_reference\t";
     JumpTableDataSection = ".const";
     CStringSection = "\t.cstring";
+    LCOMMDirective = "\t.lcomm\t";
+    COMMDirectiveTakesAlignment = false;
+    HasDotTypeDotSizeDirective = false;
     StaticCtorsSection = ".mod_init_func";
     StaticDtorsSection = ".mod_term_func";
     InlineAsmStart = "@ InlineAsm Start";
     InlineAsmEnd = "@ InlineAsm End";
-    LCOMMDirective = "\t.lcomm\t";
-    COMMDirectiveTakesAlignment = false;
     
     // In non-PIC modes, emit a special label before jump tables so that the
     // linker can perform more accurate dead code stripping.