give MCAsmInfo a 'has little endian' bit. This is unfortunate, but
[oota-llvm.git] / lib / Target / Sparc / SparcMCAsmInfo.cpp
1 //===-- SparcMCAsmInfo.cpp - Sparc 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 SparcMCAsmInfo properties.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "SparcMCAsmInfo.h"
15 #include "llvm/ADT/SmallVector.h"
16 using namespace llvm;
17
18 SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, const StringRef &TT)
19   : MCAsmInfo(/*isLittleEndian*/ false) {
20   Data16bitsDirective = "\t.half\t";
21   Data32bitsDirective = "\t.word\t";
22   Data64bitsDirective = 0;  // .xword is only supported by V9.
23   ZeroDirective = "\t.skip\t";
24   CommentString = "!";
25   COMMDirectiveTakesAlignment = true;
26   HasLEB128 = true;
27   AbsoluteDebugSectionOffsets = true;
28   SupportsDebugInformation = true;
29   
30   SunStyleELFSectionSwitchSyntax = true;
31   UsesELFSectionDirectiveForBSS = true;
32
33   WeakRefDirective = "\t.weak\t";
34   SetDirective = "\t.set\t";
35
36   PrivateGlobalPrefix = ".L";
37 }
38
39