1 //===-- PPCTargetAsmInfo.cpp - PPC asm properties ---------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by James M. Laskey and is distributed under the
6 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the DarwinTargetAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "PPCTargetAsmInfo.h"
15 #include "PPCTargetMachine.h"
19 DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM) {
20 bool isPPC64 = TM.getSubtargetImpl()->isPPC64();
24 PrivateGlobalPrefix = "L";
25 ZeroDirective = "\t.space\t";
26 SetDirective = "\t.set";
27 Data64bitsDirective = isPPC64 ? "\t.quad\t" : 0;
28 AlignmentIsInBytes = false;
29 ConstantPoolSection = "\t.const\t";
30 JumpTableDataSection = ".const";
31 JumpTableTextSection = "\t.text";
32 LCOMMDirective = "\t.lcomm\t";
33 StaticCtorsSection = ".mod_init_func";
34 StaticDtorsSection = ".mod_term_func";
35 UsedDirective = "\t.no_dead_strip\t";
36 InlineAsmStart = "# InlineAsm Start";
37 InlineAsmEnd = "# InlineAsm End";
40 AddressSize = isPPC64 ? 8 : 4;
41 DwarfAbbrevSection = ".section __DWARF,__debug_abbrev";
42 DwarfInfoSection = ".section __DWARF,__debug_info";
43 DwarfLineSection = ".section __DWARF,__debug_line";
44 DwarfFrameSection = ".section __DWARF,__debug_frame";
45 DwarfPubNamesSection = ".section __DWARF,__debug_pubnames";
46 DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes";
47 DwarfStrSection = ".section __DWARF,__debug_str";
48 DwarfLocSection = ".section __DWARF,__debug_loc";
49 DwarfARangesSection = ".section __DWARF,__debug_aranges";
50 DwarfRangesSection = ".section __DWARF,__debug_ranges";
51 DwarfMacInfoSection = ".section __DWARF,__debug_macinfo";