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 InlineAsmStart = "# InlineAsm Start";
36 InlineAsmEnd = "# InlineAsm End";
39 AddressSize = isPPC64 ? 8 : 4;
40 DwarfAbbrevSection = ".section __DWARF,__debug_abbrev";
41 DwarfInfoSection = ".section __DWARF,__debug_info";
42 DwarfLineSection = ".section __DWARF,__debug_line";
43 DwarfFrameSection = ".section __DWARF,__debug_frame";
44 DwarfPubNamesSection = ".section __DWARF,__debug_pubnames";
45 DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes";
46 DwarfStrSection = ".section __DWARF,__debug_str";
47 DwarfLocSection = ".section __DWARF,__debug_loc";
48 DwarfARangesSection = ".section __DWARF,__debug_aranges";
49 DwarfRangesSection = ".section __DWARF,__debug_ranges";
50 DwarfMacInfoSection = ".section __DWARF,__debug_macinfo";