give MCAsmInfo a 'has little endian' bit. This is unfortunate, but
[oota-llvm.git] / lib / Target / CellSPU / SPUMCAsmInfo.cpp
1 //===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===//
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 SPUMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "SPUMCAsmInfo.h"
15 using namespace llvm;
16
17 SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, const StringRef &TT)
18   : MCAsmInfo(false) {
19   ZeroDirective = "\t.space\t";
20   SetDirective = "\t.set";
21   Data64bitsDirective = "\t.quad\t";
22   AlignmentIsInBytes = false;
23   LCOMMDirective = "\t.lcomm\t";
24       
25   PCSymbol = ".";
26   CommentString = "#";
27   GlobalPrefix = "";
28   PrivateGlobalPrefix = ".L";
29
30   // Has leb128, .loc and .file
31   HasLEB128 = true;
32   HasDotLocAndDotFile = true;
33
34   SupportsDebugInformation = true;
35   NeedsSet = true;
36
37   // Exception handling is not supported on CellSPU (think about it: you only
38   // have 256K for code+data. Would you support exception handling?)
39   ExceptionsType = ExceptionHandling::None;
40 }
41