zpu: managed to compile program that writes constant to global variable
[llvm/zpu.git] / lib / Target / CellSPU / SPUMCAsmInfo.cpp
blob25ba88acc8ba60667d740b3d2604dcef526434b1
1 //===-- SPUMCAsmInfo.cpp - Cell SPU asm properties ------------------------===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains the declarations of the SPUMCAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "SPUMCAsmInfo.h"
15 using namespace llvm;
17 SPULinuxMCAsmInfo::SPULinuxMCAsmInfo(const Target &T, StringRef TT) {
18 ZeroDirective = "\t.space\t";
19 Data64bitsDirective = "\t.quad\t";
20 AlignmentIsInBytes = false;
22 PCSymbol = ".";
23 CommentString = "#";
24 GlobalPrefix = "";
25 PrivateGlobalPrefix = ".L";
27 // Has leb128, .loc and .file
28 HasLEB128 = true;
29 HasDotLocAndDotFile = true;
31 SupportsDebugInformation = true;
33 // Exception handling is not supported on CellSPU (think about it: you only
34 // have 256K for code+data. Would you support exception handling?)
35 ExceptionsType = ExceptionHandling::None;
37 // SPU assembly requires ".section" before ".bss"
38 UsesELFSectionDirectiveForBSS = true;