2dcb1135c5708b12001955d6744d68098429a131
[oota-llvm.git] / lib / Target / CellSPU / SPUTargetAsmInfo.cpp
1 //===-- SPUTargetAsmInfo.cpp - Cell SPU asm properties ----------*- C++ -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the SPUTargetAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "SPUTargetAsmInfo.h"
15 using namespace llvm;
16
17 SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo() {
18   ZeroDirective = "\t.space\t";
19   SetDirective = "\t.set";
20   Data64bitsDirective = "\t.quad\t";
21   AlignmentIsInBytes = false;
22   LCOMMDirective = "\t.lcomm\t";
23   InlineAsmStart = "# InlineAsm Start";
24   InlineAsmEnd = "# InlineAsm End";
25       
26   PCSymbol = ".";
27   CommentString = "#";
28   GlobalPrefix = "";
29   PrivateGlobalPrefix = ".L";
30
31   // Has leb128, .loc and .file
32   HasLEB128 = true;
33   HasDotLocAndDotFile = true;
34
35   SupportsDebugInformation = true;
36   NeedsSet = true;
37
38   // Exception handling is not supported on CellSPU (think about it: you only
39   // have 256K for code+data. Would you support exception handling?)
40   SupportsExceptionHandling = false;
41 }
42