blob: 03e9a01dd318a3a0fde5e4e302f5cf3356ace227 [file] [log] [blame]
Jim Laskey8e8de8f2006-09-07 22:05:02 +00001//===-- PPCTargetAsmInfo.cpp - PPC asm properties ---------------*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
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.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the declarations of the DarwinTargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "PPCTargetAsmInfo.h"
15#include "PPCTargetMachine.h"
16
17using namespace llvm;
18
19DarwinTargetAsmInfo::DarwinTargetAsmInfo(const PPCTargetMachine &TM) {
20 bool isPPC64 = TM.getSubtargetImpl()->isPPC64();
21
22 CommentString = ";";
23 GlobalPrefix = "_";
24 PrivateGlobalPrefix = "L";
25 ZeroDirective = "\t.space\t";
26 SetDirective = "\t.set";
Jim Laskeyf45c25f2006-09-08 13:06:56 +000027 Data64bitsDirective = isPPC64 ? "\t.quad\t" : 0;
Jim Laskey8e8de8f2006-09-07 22:05:02 +000028 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";
Chris Lattnera53115b2006-09-26 03:39:53 +000035 UsedDirective = "\t.no_dead_strip\t";
Jim Laskey8e8de8f2006-09-07 22:05:02 +000036 InlineAsmStart = "# InlineAsm Start";
37 InlineAsmEnd = "# InlineAsm End";
38
39 NeedsSet = true;
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";
52}