MipsMCAsmInfo.cpp revision 226890
1//===-- MipsMCAsmInfo.cpp - Mips 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 MipsMCAsmInfo properties.
11//
12//===----------------------------------------------------------------------===//
13
14#include "MipsMCAsmInfo.h"
15#include "llvm/ADT/Triple.h"
16
17using namespace llvm;
18
19MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) {
20  Triple TheTriple(TT);
21  if ((TheTriple.getArch() == Triple::mips) ||
22      (TheTriple.getArch() == Triple::mips64))
23    IsLittleEndian = false;
24
25  AlignmentIsInBytes          = false;
26  Data16bitsDirective         = "\t.2byte\t";
27  Data32bitsDirective         = "\t.4byte\t";
28  Data64bitsDirective         = 0;
29  PrivateGlobalPrefix         = "$";
30  CommentString               = "#";
31  ZeroDirective               = "\t.space\t";
32  GPRel32Directive            = "\t.gpword\t";
33  WeakRefDirective            = "\t.weak\t";
34
35  SupportsDebugInformation = true;
36  ExceptionsType = ExceptionHandling::DwarfCFI;
37  HasLEB128 = true;
38  DwarfRegNumForCFI = true;
39}
40