blob: 027d73e27be1cf209effc337997de70302345f06 [file] [log] [blame]
Scott Michel564427e2007-12-05 01:24:05 +00001//===-- 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.
7//
8// See README.txt for details.
9//
10//===----------------------------------------------------------------------===//
11//
12// This file contains the declarations of the SPUTargetAsmInfo properties.
13//
14//===----------------------------------------------------------------------===//
15
16#include "SPUTargetAsmInfo.h"
17#include "SPUTargetMachine.h"
18#include "llvm/Function.h"
19using namespace llvm;
20
21SPUTargetAsmInfo::SPUTargetAsmInfo(const SPUTargetMachine &TM) {
22 CommentString = "#";
23 GlobalPrefix = "";
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";
42
43 NeedsSet = true;
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";
56}