1 //===-- SparcMCAsmInfo.cpp - Sparc asm properties -------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains the declarations of the SparcMCAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "SparcMCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
19 SparcELFMCAsmInfo::SparcELFMCAsmInfo(const Target &T, StringRef TT) {
20 IsLittleEndian = false;
22 if (TheTriple.getArch() == Triple::sparcv9)
25 Data16bitsDirective = "\t.half\t";
26 Data32bitsDirective = "\t.word\t";
27 Data64bitsDirective = 0; // .xword is only supported by V9.
28 ZeroDirective = "\t.skip\t";
31 SupportsDebugInformation = true;
33 SunStyleELFSectionSwitchSyntax = true;
34 UsesELFSectionDirectiveForBSS = true;
36 WeakRefDirective = "\t.weak\t";
38 PrivateGlobalPrefix = ".L";