blob: 68445cf6bf9d7f22d92ca8f3963206c7b8fcfa0c [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 Lattner8eeba352010-01-20 06:34:14 +000017SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, const StringRef &TT) {
Chris Lattner09e820b2009-08-02 04:44:33 +000018 ZeroDirective = "\t.space\t";
Chris Lattner09e820b2009-08-02 04:44:33 +000019 Data64bitsDirective = "\t.quad\t";
20 AlignmentIsInBytes = false;
Chris Lattner09e820b2009-08-02 04:44:33 +000021
Scott Michel053c1da2008-01-29 02:16:57 +000022 PCSymbol = ".";
Scott Michel564427e2007-12-05 01:24:05 +000023 CommentString = "#";
24 GlobalPrefix = "";
25 PrivateGlobalPrefix = ".L";
Scott Michelf0569be2008-12-27 04:51:36 +000026
Scott Michel9de57a92009-01-26 22:33:37 +000027 // Has leb128, .loc and .file
28 HasLEB128 = true;
29 HasDotLocAndDotFile = true;
30
Scott Michel9de57a92009-01-26 22:33:37 +000031 SupportsDebugInformation = true;
Scott Michel9de57a92009-01-26 22:33:37 +000032
33 // Exception handling is not supported on CellSPU (think about it: you only
34 // have 256K for code+data. Would you support exception handling?)
Jim Grosbach1b747ad2009-08-11 00:09:57 +000035 ExceptionsType = ExceptionHandling::None;
Chris Lattnerac834e72010-03-05 18:55:36 +000036
37 // SPU assembly requires ".section" before ".bss"
38 UsesELFSectionDirectiveForBSS = true;
Scott Michel564427e2007-12-05 01:24:05 +000039}
Scott Micheld03eeaf2008-11-07 04:36:25 +000040