all darwin targets have .space and .zerofill, pull up.
[oota-llvm.git] / lib / Target / ARM / ARMTargetAsmInfo.cpp
1 //===-- ARMTargetAsmInfo.cpp - ARM asm properties ---------------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the ARMTargetAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "ARMTargetAsmInfo.h"
15 using namespace llvm;
16
17 static const char *const arm_asm_table[] = {
18   "{r0}", "r0",
19   "{r1}", "r1",
20   "{r2}", "r2",
21   "{r3}", "r3",
22   "{r4}", "r4",
23   "{r5}", "r5",
24   "{r6}", "r6",
25   "{r7}", "r7",
26   "{r8}", "r8",
27   "{r9}", "r9",
28   "{r10}", "r10",
29   "{r11}", "r11",
30   "{r12}", "r12",
31   "{r13}", "r13",
32   "{r14}", "r14",
33   "{lr}", "lr",
34   "{sp}", "sp",
35   "{ip}", "ip",
36   "{fp}", "fp",
37   "{sl}", "sl",
38   "{memory}", "memory",
39   "{cc}", "cc",
40   0,0
41 };
42
43 ARMDarwinTargetAsmInfo::ARMDarwinTargetAsmInfo() {
44   AsmTransCBE = arm_asm_table;
45   AlignmentIsInBytes = false;
46   Data64bitsDirective = 0;
47   CommentString = "@";
48   COMMDirectiveTakesAlignment = false;
49   InlineAsmStart = "@ InlineAsm Start";
50   InlineAsmEnd = "@ InlineAsm End";
51   
52   
53   SetDirective = "\t.set\t";
54   ProtectedDirective = NULL;
55   HasDotTypeDotSizeDirective = false;
56   SupportsDebugInformation = true;
57
58   // Exceptions handling
59   ExceptionsType = ExceptionHandling::SjLj;
60   GlobalEHDirective = "\t.globl\t";
61   SupportsWeakOmittedEHFrame = false;
62   AbsoluteEHSectionOffsets = false;
63 }
64
65 ARMELFTargetAsmInfo::ARMELFTargetAsmInfo() {
66   AlignmentIsInBytes = false;
67   Data64bitsDirective = 0;
68   CommentString = "@";
69   COMMDirectiveTakesAlignment = false;
70   InlineAsmStart = "@ InlineAsm Start";
71   InlineAsmEnd = "@ InlineAsm End";
72   
73   NeedsSet = false;
74   HasLEB128 = true;
75   AbsoluteDebugSectionOffsets = true;
76   PrivateGlobalPrefix = ".L";
77   WeakRefDirective = "\t.weak\t";
78   SetDirective = "\t.set\t";
79   LCOMMDirective = "\t.lcomm\t";
80
81   DwarfRequiresFrameSection = false;
82
83   SupportsDebugInformation = true;
84 }