blob: f79deed5957cde25eba825edb623c138be49d7d6 [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//
Chris Lattner4ee451d2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Scott Michel564427e2007-12-05 01:24:05 +00007//
8//===----------------------------------------------------------------------===//
9//
10// This file contains the declarations of the SPUTargetAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "SPUTargetAsmInfo.h"
15#include "SPUTargetMachine.h"
16#include "llvm/Function.h"
17using namespace llvm;
18
19SPUTargetAsmInfo::SPUTargetAsmInfo(const SPUTargetMachine &TM) {
Scott Michel053c1da2008-01-29 02:16:57 +000020 PCSymbol = ".";
Scott Michel564427e2007-12-05 01:24:05 +000021 CommentString = "#";
22 GlobalPrefix = "";
23 PrivateGlobalPrefix = ".L";
24 ZeroDirective = "\t.space\t";
25 SetDirective = "\t.set";
26 Data64bitsDirective = "\t.quad\t";
27 AlignmentIsInBytes = false;
Scott Michel053c1da2008-01-29 02:16:57 +000028 SwitchToSectionDirective = ".section\t";
Scott Michel564427e2007-12-05 01:24:05 +000029 ConstantPoolSection = "\t.const\t";
30 JumpTableDataSection = ".const";
31 CStringSection = "\t.cstring";
Scott Michel564427e2007-12-05 01:24:05 +000032 StaticCtorsSection = ".mod_init_func";
33 StaticDtorsSection = ".mod_term_func";
Scott Michel564427e2007-12-05 01:24:05 +000034 InlineAsmStart = "# InlineAsm Start";
35 InlineAsmEnd = "# InlineAsm End";
36
37 NeedsSet = true;
38 /* FIXME: Need actual assembler syntax for DWARF info: */
39 DwarfAbbrevSection = ".section __DWARF,__debug_abbrev,regular,debug";
40 DwarfInfoSection = ".section __DWARF,__debug_info,regular,debug";
41 DwarfLineSection = ".section __DWARF,__debug_line,regular,debug";
42 DwarfFrameSection = ".section __DWARF,__debug_frame,regular,debug";
43 DwarfPubNamesSection = ".section __DWARF,__debug_pubnames,regular,debug";
44 DwarfPubTypesSection = ".section __DWARF,__debug_pubtypes,regular,debug";
45 DwarfStrSection = ".section __DWARF,__debug_str,regular,debug";
46 DwarfLocSection = ".section __DWARF,__debug_loc,regular,debug";
47 DwarfARangesSection = ".section __DWARF,__debug_aranges,regular,debug";
48 DwarfRangesSection = ".section __DWARF,__debug_ranges,regular,debug";
49 DwarfMacInfoSection = ".section __DWARF,__debug_macinfo,regular,debug";
50}