llvm.org GIT mirror llvm / ea9fc58
Some asm directives fixes for ELF. Now we can compile llvm-gcc on arm-linux-gnueabi! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33558 91177308-0d34-0410-b5e6-96231b3b80d8 Lauro Ramos Venancio 13 years ago
1 changed file(s) with 7 addition(s) and 8 deletion(s). Raw diff Collapse all Expand all
1818 const ARMSubtarget *Subtarget = &TM.getSubtarget();
1919 if (Subtarget->isTargetDarwin()) {
2020 GlobalPrefix = "_";
21 ZeroDirective = "\t.space\t";
2221 PrivateGlobalPrefix = "L";
2322 BSSSection = 0; // no BSS section.
2423 ZeroFillDirective = "\t.zerofill\t"; // Uses .zerofill
2726 HiddenDirective = "\t.private_extern\t";
2827 JumpTableDataSection = ".const";
2928 CStringSection = "\t.cstring";
30 LCOMMDirective = "\t.lcomm\t";
31 COMMDirectiveTakesAlignment = false;
3229 HasDotTypeDotSizeDirective = false;
3330 StaticCtorsSection = ".mod_init_func";
3431 StaticDtorsSection = ".mod_term_func";
35 InlineAsmStart = "@ InlineAsm Start";
36 InlineAsmEnd = "@ InlineAsm End";
3732
3833 // In non-PIC modes, emit a special label before jump tables so that the
3934 // linker can perform more accurate dead code stripping.
5550 DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
5651 DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
5752 } else {
58 Data32bitsDirective = "\t.word\t";
59 ZeroDirective = "\t.skip\t";
6053 WeakRefDirective = "\t.weak\t";
6154 StaticCtorsSection = "\t.section .ctors,\"aw\",%progbits";
6255 StaticDtorsSection = "\t.section .dtors,\"aw\",%progbits";
6356 }
64 AlignmentIsInBytes = false;
57
58 ZeroDirective = "\t.space\t";
59 AlignmentIsInBytes = false;
6560 Data64bitsDirective = 0;
6661 CommentString = "@";
6762 DataSection = "\t.data";
6863 ConstantPoolSection = "\t.text\n";
64 COMMDirectiveTakesAlignment = false;
65 InlineAsmStart = "@ InlineAsm Start";
66 InlineAsmEnd = "@ InlineAsm End";
67 LCOMMDirective = "\t.lcomm\t";
6968 }