2009-08-22 22:48:53 +02:00
|
|
|
//===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===//
|
2007-12-05 02:24:05 +01:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 21:36:04 +01:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-12-05 02:24:05 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
2009-08-22 22:48:53 +02:00
|
|
|
// This file contains the declarations of the SPUMCAsmInfo properties.
|
2007-12-05 02:24:05 +01:00
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
2009-08-22 22:48:53 +02:00
|
|
|
#include "SPUMCAsmInfo.h"
|
2007-12-05 02:24:05 +01:00
|
|
|
using namespace llvm;
|
|
|
|
|
2009-08-22 22:48:53 +02:00
|
|
|
SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, const StringRef &TT) {
|
2009-08-02 06:44:33 +02:00
|
|
|
ZeroDirective = "\t.space\t";
|
|
|
|
SetDirective = "\t.set";
|
|
|
|
Data64bitsDirective = "\t.quad\t";
|
|
|
|
AlignmentIsInBytes = false;
|
|
|
|
LCOMMDirective = "\t.lcomm\t";
|
|
|
|
|
2008-01-29 03:16:57 +01:00
|
|
|
PCSymbol = ".";
|
2007-12-05 02:24:05 +01:00
|
|
|
CommentString = "#";
|
|
|
|
GlobalPrefix = "";
|
|
|
|
PrivateGlobalPrefix = ".L";
|
2008-12-27 05:51:36 +01:00
|
|
|
|
2009-01-26 23:33:37 +01:00
|
|
|
// Has leb128, .loc and .file
|
|
|
|
HasLEB128 = true;
|
|
|
|
HasDotLocAndDotFile = true;
|
|
|
|
|
|
|
|
SupportsDebugInformation = true;
|
|
|
|
NeedsSet = true;
|
|
|
|
|
|
|
|
// Exception handling is not supported on CellSPU (think about it: you only
|
|
|
|
// have 256K for code+data. Would you support exception handling?)
|
2009-08-11 02:09:57 +02:00
|
|
|
ExceptionsType = ExceptionHandling::None;
|
2007-12-05 02:24:05 +01:00
|
|
|
}
|
2008-11-07 05:36:25 +01:00
|
|
|
|