Change allowsUnalignedMemoryAccesses to take type argument since some targets
[llvm/avr.git] / lib / Target / CellSPU / SPUTargetAsmInfo.cpp
blob4ae852df995d1a21643223ce19fc271321de0f53
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.
12 //===----------------------------------------------------------------------===//
14 #include "SPUTargetAsmInfo.h"
15 using namespace llvm;
17 SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo(const Target &T, const StringRef &TT) {
18 ZeroDirective = "\t.space\t";
19 SetDirective = "\t.set";
20 Data64bitsDirective = "\t.quad\t";
21 AlignmentIsInBytes = false;
22 LCOMMDirective = "\t.lcomm\t";
24 PCSymbol = ".";
25 CommentString = "#";
26 GlobalPrefix = "";
27 PrivateGlobalPrefix = ".L";
29 // Has leb128, .loc and .file
30 HasLEB128 = true;
31 HasDotLocAndDotFile = true;
33 SupportsDebugInformation = true;
34 NeedsSet = true;
36 // Exception handling is not supported on CellSPU (think about it: you only
37 // have 256K for code+data. Would you support exception handling?)
38 ExceptionsType = ExceptionHandling::None;