1 //===-- SPUTargetAsmInfo.cpp - Cell SPU asm properties ----------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the SPUTargetAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "SPUTargetAsmInfo.h"
15 #include "SPUTargetMachine.h"
16 #include "llvm/Function.h"
19 SPUTargetAsmInfo::SPUTargetAsmInfo(const SPUTargetMachine &TM) {
22 PrivateGlobalPrefix = ".L";
23 ZeroDirective = "\t.space\t";
24 SetDirective = "\t.set";
25 Data64bitsDirective = "\t.quad\t";
26 AlignmentIsInBytes = false;
27 SwitchToSectionDirective = "\t.section\t";
28 ConstantPoolSection = "\t.const\t";
29 JumpTableDataSection = ".const";
30 CStringSection = "\t.cstring";
31 LCOMMDirective = "\t.lcomm\t";
32 StaticCtorsSection = ".mod_init_func";
33 StaticDtorsSection = ".mod_term_func";
34 FourByteConstantSection = ".const";
35 SixteenByteConstantSection = "\t.section\t.rodata.cst16,\"aM\",@progbits,16";
36 UsedDirective = "\t.no_dead_strip\t";
37 WeakRefDirective = "\t.weak_reference\t";
38 InlineAsmStart = "# InlineAsm Start";
39 InlineAsmEnd = "# InlineAsm End";
42 /* FIXME: Need actual assembler syntax for DWARF info: */
43 DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
44 DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
45 DwarfLineSection = ".section __DWARF,__debug_line,regular,debug";
46 DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug";
47 DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug";
48 DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug";
49 DwarfStrSection = ".section __DWARF,__debug_str,regular,debug";
50 DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug";
51 DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug";
52 DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
53 DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";