blob: 4ae852df995d1a21643223ce19fc271321de0f53 [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"
Scott Michel564427e2007-12-05 01:24:05 +000015using namespace llvm;
16
Chris Lattnera7ac47c2009-08-12 07:22:17 +000017SPULinuxTargetAsmInfo::SPULinuxTargetAsmInfo(const Target &T, const StringRef &TT) {
Chris Lattner09e820b2009-08-02 04:44:33 +000018 ZeroDirective = "\t.space\t";
19 SetDirective = "\t.set";
20 Data64bitsDirective = "\t.quad\t";
21 AlignmentIsInBytes = false;
22 LCOMMDirective = "\t.lcomm\t";
Chris Lattner09e820b2009-08-02 04:44:33 +000023
Scott Michel053c1da2008-01-29 02:16:57 +000024 PCSymbol = ".";
Scott Michel564427e2007-12-05 01:24:05 +000025 CommentString = "#";
26 GlobalPrefix = "";
27 PrivateGlobalPrefix = ".L";
Scott Michelf0569be2008-12-27 04:51:36 +000028
Scott Michel9de57a92009-01-26 22:33:37 +000029 // Has leb128, .loc and .file
30 HasLEB128 = true;
31 HasDotLocAndDotFile = true;
32
Scott Michel9de57a92009-01-26 22:33:37 +000033 SupportsDebugInformation = true;
34 NeedsSet = true;
Scott Michel9de57a92009-01-26 22:33:37 +000035
36 // Exception handling is not supported on CellSPU (think about it: you only
37 // have 256K for code+data. Would you support exception handling?)
Jim Grosbach1b747ad2009-08-11 00:09:57 +000038 ExceptionsType = ExceptionHandling::None;
Scott Michel564427e2007-12-05 01:24:05 +000039}
Scott Micheld03eeaf2008-11-07 04:36:25 +000040