blob: e5fc26ecb057f1853a7877d4c73e1fbc90087b13 [file] [log] [blame]
Jim Laskey7c95ad42006-09-06 19:21:41 +00001//===-- TargetAsmInfo.cpp - Asm Info ---------------------------------------==//
Jim Laskeyec0d9fe2006-09-06 18:35:33 +00002//
3// The LLVM Compiler Infrastructure
4//
5// This file was developed by James M. Laskey and is distributed under
6// the University of Illinois Open Source License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file defines target asm properties related what form asm statements
11// should take.
12//
13//===----------------------------------------------------------------------===//
14
15#include "llvm/Target/TargetAsmInfo.h"
16
17using namespace llvm;
18
19TargetAsmInfo::TargetAsmInfo() :
20 TextSection(".text"),
21 DataSection(".data"),
22 AddressSize(4),
23 NeedsSet(false),
24 CommentString("#"),
25 GlobalPrefix(""),
26 PrivateGlobalPrefix("."),
27 GlobalVarAddrPrefix(""),
28 GlobalVarAddrSuffix(""),
29 FunctionAddrPrefix(""),
30 FunctionAddrSuffix(""),
31 InlineAsmStart("#APP"),
32 InlineAsmEnd("#NO_APP"),
33 ZeroDirective("\t.zero\t"),
34 ZeroDirectiveSuffix(0),
35 AsciiDirective("\t.ascii\t"),
36 AscizDirective("\t.asciz\t"),
37 Data8bitsDirective("\t.byte\t"),
38 Data16bitsDirective("\t.short\t"),
39 Data32bitsDirective("\t.long\t"),
40 Data64bitsDirective("\t.quad\t"),
41 AlignDirective("\t.align\t"),
42 AlignmentIsInBytes(true),
43 SwitchToSectionDirective("\t.section\t"),
44 TextSectionStartSuffix(""),
45 DataSectionStartSuffix(""),
46 SectionEndDirectiveSuffix(0),
47 ConstantPoolSection("\t.section .rodata\n"),
48 JumpTableDataSection("\t.section .rodata\n"),
49 JumpTableTextSection("\t.text\n"),
50 StaticCtorsSection("\t.section .ctors,\"aw\",@progbits"),
51 StaticDtorsSection("\t.section .dtors,\"aw\",@progbits"),
52 FourByteConstantSection(0),
53 EightByteConstantSection(0),
54 SixteenByteConstantSection(0),
55 SetDirective(0),
56 LCOMMDirective(0),
57 COMMDirective("\t.comm\t"),
58 COMMDirectiveTakesAlignment(true),
59 HasDotTypeDotSizeDirective(true),
60 HasLEB128(false),
61 HasDotLoc(false),
62 HasDotFile(false),
63 DwarfAbbrevSection(".debug_abbrev"),
64 DwarfInfoSection(".debug_info"),
65 DwarfLineSection(".debug_line"),
66 DwarfFrameSection(".debug_frame"),
67 DwarfPubNamesSection(".debug_pubnames"),
68 DwarfPubTypesSection(".debug_pubtypes"),
69 DwarfStrSection(".debug_str"),
70 DwarfLocSection(".debug_loc"),
71 DwarfARangesSection(".debug_aranges"),
72 DwarfRangesSection(".debug_ranges"),
73 DwarfMacInfoSection(".debug_macinfo")
74{}