blob: 3b43a7e2092d92446f07995763e32bf82ae90884 [file] [log] [blame]
Chris Lattneraf76e592009-08-22 20:48:53 +00001//===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===//
Scott Michel564427e2007-12-05 01:24:05 +00002//
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//
Chris Lattneraf76e592009-08-22 20:48:53 +000010// This file contains the declarations of the SPUMCAsmInfo properties.
Scott Michel564427e2007-12-05 01:24:05 +000011//
12//===----------------------------------------------------------------------===//
13
Chris Lattneraf76e592009-08-22 20:48:53 +000014#include "SPUMCAsmInfo.h"
Scott Michel564427e2007-12-05 01:24:05 +000015using namespace llvm;
16
Chris Lattnerc7b88142010-01-19 22:42:28 +000017SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, const StringRef &TT)
18 : MCAsmInfo(false) {
Chris Lattner09e820b2009-08-02 04:44:33 +000019 ZeroDirective = "\t.space\t";
20 SetDirective = "\t.set";
21 Data64bitsDirective = "\t.quad\t";
22 AlignmentIsInBytes = false;
23 LCOMMDirective = "\t.lcomm\t";
Chris Lattner09e820b2009-08-02 04:44:33 +000024
Scott Michel053c1da2008-01-29 02:16:57 +000025 PCSymbol = ".";
Scott Michel564427e2007-12-05 01:24:05 +000026 CommentString = "#";
27 GlobalPrefix = "";
28 PrivateGlobalPrefix = ".L";
Scott Michelf0569be2008-12-27 04:51:36 +000029
Scott Michel9de57a92009-01-26 22:33:37 +000030 // Has leb128, .loc and .file
31 HasLEB128 = true;
32 HasDotLocAndDotFile = true;
33
Scott Michel9de57a92009-01-26 22:33:37 +000034 SupportsDebugInformation = true;
35 NeedsSet = true;
Scott Michel9de57a92009-01-26 22:33:37 +000036
37 // Exception handling is not supported on CellSPU (think about it: you only
38 // have 256K for code+data. Would you support exception handling?)
Jim Grosbach1b747ad2009-08-11 00:09:57 +000039 ExceptionsType = ExceptionHandling::None;
Scott Michel564427e2007-12-05 01:24:05 +000040}
Scott Micheld03eeaf2008-11-07 04:36:25 +000041