LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SparcMCAsmInfo.cpp
Go to the documentation of this file.
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/Triple.h"
16 
17 using namespace llvm;
18 
19 void SparcELFMCAsmInfo::anchor() { }
20 
22  IsLittleEndian = false;
23  Triple TheTriple(TT);
24  bool isV9 = (TheTriple.getArch() == Triple::sparcv9);
25 
26  if (isV9) {
28  }
29 
30  Data16bitsDirective = "\t.half\t";
31  Data32bitsDirective = "\t.word\t";
32  // .xword is only supported by V9.
33  Data64bitsDirective = (isV9) ? "\t.xword\t" : 0;
34  ZeroDirective = "\t.skip\t";
35  CommentString = "!";
36  HasLEB128 = true;
38 
40 
43 
44  PrivateGlobalPrefix = ".L";
45 }
46 
47 
const char * Data64bitsDirective
Definition: MCAsmInfo.h:179
const char * ZeroDirective
Definition: MCAsmInfo.h:162
bool IsLittleEndian
Definition: MCAsmInfo.h:59
unsigned CalleeSaveStackSlotSize
Definition: MCAsmInfo.h:55
ExceptionHandling::ExceptionsType ExceptionsType
SupportsExceptionHandling - True if target supports exception handling.
Definition: MCAsmInfo.h:300
const char * PrivateGlobalPrefix
Definition: MCAsmInfo.h:125
bool UsesELFSectionDirectiveForBSS
Definition: MCAsmInfo.h:199
bool SunStyleELFSectionSwitchSyntax
Definition: MCAsmInfo.h:194
const char * CommentString
Definition: MCAsmInfo.h:110
ArchType getArch() const
getArch - Get the parsed architecture type of this triple.
Definition: Triple.h:172
unsigned PointerSize
Definition: MCAsmInfo.h:50
bool SupportsDebugInformation
Definition: MCAsmInfo.h:297
const char * Data16bitsDirective
Definition: MCAsmInfo.h:177
bool HasLEB128
HasLEB128 - True if target asm supports leb128 directives.
Definition: MCAsmInfo.h:293
const char * Data32bitsDirective
Definition: MCAsmInfo.h:178
SparcELFMCAsmInfo(StringRef TT)