blob: 03cdb2931dbd354f434a6d7ad0ae07711e5a9248 [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";
19 SetDirective = "\t.set";
20 Data64bitsDirective = "\t.quad\t";
21 AlignmentIsInBytes = false;
Chris Lattnerd70deeb2010-01-23 07:47:02 +000022 HasLCOMMDirective = true;
Chris Lattnerccab6f72009-08-02 04:44:33 +000023
Scott Michelf9f42e62008-01-29 02:16:57 +000024 PCSymbol = ".";
Scott Michel5c93da42007-12-05 01:24:05 +000025 CommentString = "#";
26 GlobalPrefix = "";
27 PrivateGlobalPrefix = ".L";
Scott Michel06eabde2008-12-27 04:51:36 +000028
Scott Michelc899a122009-01-26 22:33:37 +000029 // Has leb128, .loc and .file
30 HasLEB128 = true;
31 HasDotLocAndDotFile = true;
32
Scott Michelc899a122009-01-26 22:33:37 +000033 SupportsDebugInformation = true;
34 NeedsSet = true;
Scott Michelc899a122009-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 Grosbach29feb6a2009-08-11 00:09:57 +000038 ExceptionsType = ExceptionHandling::None;
Scott Michel5c93da42007-12-05 01:24:05 +000039}
Scott Michel1e5a4ba2008-11-07 04:36:25 +000040