Change SectionKind to be a property that is true of a *section*, it
[oota-llvm.git] / lib / Target / XCore / XCoreTargetAsmInfo.cpp
1 //===-- XCoreTargetAsmInfo.cpp - XCore asm properties ---------------------===//
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 #include "XCoreTargetAsmInfo.h"
11 using namespace llvm;
12
13 XCoreTargetAsmInfo::XCoreTargetAsmInfo(const TargetMachine &TM)
14   : ELFTargetAsmInfo(TM) {
15   SupportsDebugInformation = true;
16   Data16bitsDirective = "\t.short\t";
17   Data32bitsDirective = "\t.long\t";
18   Data64bitsDirective = 0;
19   ZeroDirective = "\t.space\t";
20   CommentString = "#";
21   ConstantPoolSection = "\t.section\t.cp.rodata,\"ac\",@progbits";
22   JumpTableDataSection = "\t.section\t.dp.data,\"awd\",@progbits";
23   PrivateGlobalPrefix = ".L";
24   AscizDirective = ".asciiz";
25   WeakDefDirective = "\t.weak\t";
26   WeakRefDirective = "\t.weak\t";
27   SetDirective = "\t.set\t";
28
29   // Debug
30   HasLEB128 = true;
31   AbsoluteDebugSectionOffsets = true;
32   
33   DwarfAbbrevSection = "\t.section\t.debug_abbrev,\"\",@progbits";
34   DwarfInfoSection = "\t.section\t.debug_info,\"\",@progbits";
35   DwarfLineSection = "\t.section\t.debug_line,\"\",@progbits";
36   DwarfFrameSection = "\t.section\t.debug_frame,\"\",@progbits";
37   DwarfPubNamesSection = "\t.section\t.debug_pubnames,\"\",@progbits";
38   DwarfPubTypesSection = "\t.section\t.debug_pubtypes,\"\",@progbits";
39   DwarfStrSection = "\t.section\t.debug_str,\"\",@progbits";
40   DwarfLocSection = "\t.section\t.debug_loc,\"\",@progbits";
41   DwarfARangesSection = "\t.section\t.debug_aranges,\"\",@progbits";
42   DwarfRangesSection = "\t.section\t.debug_ranges,\"\",@progbits";
43   DwarfMacroInfoSection = "\t.section\t.debug_macinfo,\"\",@progbits";
44 }
45