blob: 5ef3c6b24de746d0edf97c6b27364f0de902dc8e [file] [log] [blame]
Chris Lattner621c44d2009-08-22 20:48:53 +00001//===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===//
Scott Michel5c93da42007-12-05 01:24:05 +00002//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner081ce942007-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 Michel5c93da42007-12-05 01:24:05 +00007//
8//===----------------------------------------------------------------------===//
9//
Chris Lattner621c44d2009-08-22 20:48:53 +000010// This file contains the declarations of the SPUMCAsmInfo properties.
Scott Michel5c93da42007-12-05 01:24:05 +000011//
12//===----------------------------------------------------------------------===//
13
Chris Lattner621c44d2009-08-22 20:48:53 +000014#include "SPUMCAsmInfo.h"
Scott Michel5c93da42007-12-05 01:24:05 +000015using namespace llvm;
16
Chris Lattner50f82ef2010-01-20 06:34:14 +000017SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, const StringRef &TT) {
Chris Lattnerccab6f72009-08-02 04:44:33 +000018 ZeroDirective = "\t.space\t";
Chris Lattnerccab6f72009-08-02 04:44:33 +000019 Data64bitsDirective = "\t.quad\t";
20 AlignmentIsInBytes = false;
Chris Lattnerd70deeb2010-01-23 07:47:02 +000021 HasLCOMMDirective = true;
Chris Lattnerccab6f72009-08-02 04:44:33 +000022
Scott Michelf9f42e62008-01-29 02:16:57 +000023 PCSymbol = ".";
Scott Michel5c93da42007-12-05 01:24:05 +000024 CommentString = "#";
25 GlobalPrefix = "";
26 PrivateGlobalPrefix = ".L";
Scott Michel06eabde2008-12-27 04:51:36 +000027
Scott Michelc899a122009-01-26 22:33:37 +000028 // Has leb128, .loc and .file
29 HasLEB128 = true;
30 HasDotLocAndDotFile = true;
31
Scott Michelc899a122009-01-26 22:33:37 +000032 SupportsDebugInformation = true;
Scott Michelc899a122009-01-26 22:33:37 +000033
34 // Exception handling is not supported on CellSPU (think about it: you only
35 // have 256K for code+data. Would you support exception handling?)
Jim Grosbach29feb6a2009-08-11 00:09:57 +000036 ExceptionsType = ExceptionHandling::None;
Scott Michel5c93da42007-12-05 01:24:05 +000037}
Scott Michel1e5a4ba2008-11-07 04:36:25 +000038