Updated source file headers to llvm coding standard.
[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 was developed by a team from the Computer Systems Research
6 // Department at The Aerospace Corporation and is distributed under the
7 // University of Illinois Open Source License. See LICENSE.TXT for details.
8 //
9 //===----------------------------------------------------------------------===//
10 //
11 // This file contains the declarations of the SPUTargetAsmInfo properties.
12 //
13 //===----------------------------------------------------------------------===//
14
15 #include "SPUTargetAsmInfo.h"
16 #include "SPUTargetMachine.h"
17 #include "llvm/Function.h"
18 using namespace llvm;
19
20 SPUTargetAsmInfo::SPUTargetAsmInfo(const SPUTargetMachine &TM) {
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 = "\t.section\t";
29   ConstantPoolSection = "\t.const\t";
30   JumpTableDataSection = ".const";
31   CStringSection = "\t.cstring";
32   LCOMMDirective = "\t.lcomm\t";
33   StaticCtorsSection = ".mod_init_func";
34   StaticDtorsSection = ".mod_term_func";
35   FourByteConstantSection = ".const";
36   SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\",@progbits,16";
37   UsedDirective = "\t.no_dead_strip\t";
38   WeakRefDirective = "\t.weak_reference\t";
39   InlineAsmStart = "# InlineAsm Start";
40   InlineAsmEnd = "# InlineAsm End";
41   
42   NeedsSet = true;
43   /* FIXME: Need actual assembler syntax for DWARF info: */
44   DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
45   DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
46   DwarfLineSection = ".section __DWARF,__debug_line,regular,debug";
47   DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug";
48   DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug";
49   DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug";
50   DwarfStrSection = ".section __DWARF,__debug_str,regular,debug";
51   DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug";
52   DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug";
53   DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
54   DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
55 }