SPU section handling is really huge mess. Replace remaining TAI calls for sections...
[oota-llvm.git] / lib / Target / CellSPU / SPUTargetAsmInfo.cpp
1 //===-- SPUTargetAsmInfo.cpp - Cell SPU 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 SPUTargetAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "SPUTargetAsmInfo.h"
15 #include "SPUTargetMachine.h"
16 #include "llvm/Function.h"
17 using namespace llvm;
18
19 SPUTargetAsmInfo::SPUTargetAsmInfo(const SPUTargetMachine &TM) {
20   PCSymbol = ".";
21   CommentString = "#";
22   GlobalPrefix = "";
23   PrivateGlobalPrefix = ".L";
24   ZeroDirective = "\t.space\t";
25   SetDirective = "\t.set";
26   Data64bitsDirective = "\t.quad\t";  
27   AlignmentIsInBytes = false;
28   SwitchToSectionDirective = ".section\t";
29   ConstantPoolSection = "\t.const\t";
30   JumpTableDataSection = ".const";
31   CStringSection = "\t.cstring";
32   StaticCtorsSection = ".mod_init_func";
33   StaticDtorsSection = ".mod_term_func";
34   FourByteConstantSection = ".const";
35   SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\",@progbits,16";
36   InlineAsmStart = "# InlineAsm Start";
37   InlineAsmEnd = "# InlineAsm End";
38   
39   NeedsSet = true;
40   /* FIXME: Need actual assembler syntax for DWARF info: */
41   DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
42   DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
43   DwarfLineSection = ".section __DWARF,__debug_line,regular,debug";
44   DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug";
45   DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug";
46   DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug";
47   DwarfStrSection = ".section __DWARF,__debug_str,regular,debug";
48   DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug";
49   DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug";
50   DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
51   DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
52 }