blob: f90c7d8a4d0c7681a24c3bca24e90614bce9041f [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
Scott Michel2466c372007-12-05 01:40:25 +00006// Department at The Aerospace Corporation and is distributed under the
7// University of Illinois Open Source License. See LICENSE.TXT for details.
Scott Michel564427e2007-12-05 01:24:05 +00008//
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"
18using namespace llvm;
19
20SPUTargetAsmInfo::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}