Make SectionKind::get() private.
[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     
22   PrivateGlobalPrefix = ".L";
23   AscizDirective = ".asciiz";
24   WeakDefDirective = "\t.weak\t";
25   WeakRefDirective = "\t.weak\t";
26   SetDirective = "\t.set\t";
27
28   // Debug
29   HasLEB128 = true;
30   AbsoluteDebugSectionOffsets = true;
31   
32   DwarfAbbrevSection = "\t.section\t.debug_abbrev,\"\",@progbits";
33   DwarfInfoSection = "\t.section\t.debug_info,\"\",@progbits";
34   DwarfLineSection = "\t.section\t.debug_line,\"\",@progbits";
35   DwarfFrameSection = "\t.section\t.debug_frame,\"\",@progbits";
36   DwarfPubNamesSection = "\t.section\t.debug_pubnames,\"\",@progbits";
37   DwarfPubTypesSection = "\t.section\t.debug_pubtypes,\"\",@progbits";
38   DwarfStrSection = "\t.section\t.debug_str,\"\",@progbits";
39   DwarfLocSection = "\t.section\t.debug_loc,\"\",@progbits";
40   DwarfARangesSection = "\t.section\t.debug_aranges,\"\",@progbits";
41   DwarfRangesSection = "\t.section\t.debug_ranges,\"\",@progbits";
42   DwarfMacroInfoSection = "\t.section\t.debug_macinfo,\"\",@progbits";
43 }
44