Darwin doesn't support .bss, but it does have .zerofill

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33364 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Evan Cheng 2007-01-19 19:23:47 +00:00
parent 1a3771e30e
commit e433ea9dce

View File

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