1 //===-- SPUTargetAsmInfo.cpp - Cell SPU asm properties ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by a team from the Computer Systems Research
6 // Department at The Aerospace Corporation.
8 // See README.txt for details.
10 //===----------------------------------------------------------------------===//
12 // This file contains the declarations of the SPUTargetAsmInfo properties.
14 //===----------------------------------------------------------------------===//
16 #include "SPUTargetAsmInfo.h"
17 #include "SPUTargetMachine.h"
18 #include "llvm/Function.h"
21 SPUTargetAsmInfo::SPUTargetAsmInfo(const SPUTargetMachine &TM) {
24 PrivateGlobalPrefix = ".L";
25 ZeroDirective = "\t.space\t";
26 SetDirective = "\t.set";
27 Data64bitsDirective = "\t.quad\t";
28 AlignmentIsInBytes = false;
29 SwitchToSectionDirective = "\t.section\t";
30 ConstantPoolSection = "\t.const\t";
31 JumpTableDataSection = ".const";
32 CStringSection = "\t.cstring";
33 LCOMMDirective = "\t.lcomm\t";
34 StaticCtorsSection = ".mod_init_func";
35 StaticDtorsSection = ".mod_term_func";
36 FourByteConstantSection = ".const";
37 SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\",@progbits,16";
38 UsedDirective = "\t.no_dead_strip\t";
39 WeakRefDirective = "\t.weak_reference\t";
40 InlineAsmStart = "# InlineAsm Start";
41 InlineAsmEnd = "# InlineAsm End";
44 /* FIXME: Need actual assembler syntax for DWARF info: */
45 DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
46 DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
47 DwarfLineSection = ".section __DWARF,__debug_line,regular,debug";
48 DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug";
49 DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug";
50 DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug";
51 DwarfStrSection = ".section __DWARF,__debug_str,regular,debug";
52 DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug";
53 DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug";
54 DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
55 DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";