1 //===-- MipsMCAsmInfo.cpp - Mips 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 MipsMCAsmInfo properties.
12 //===----------------------------------------------------------------------===//
14 #include "MipsMCAsmInfo.h"
15 #include "llvm/ADT/Triple.h"
19 void MipsMCAsmInfo::anchor() { }
21 MipsMCAsmInfo::MipsMCAsmInfo(StringRef TT) {
23 if ((TheTriple.getArch() == Triple::mips) ||
24 (TheTriple.getArch() == Triple::mips64))
25 IsLittleEndian = false;
27 if ((TheTriple.getArch() == Triple::mips64el) ||
28 (TheTriple.getArch() == Triple::mips64)) {
29 PointerSize = CalleeSaveStackSlotSize = 8;
32 AlignmentIsInBytes = false;
33 Data16bitsDirective = "\t.2byte\t";
34 Data32bitsDirective = "\t.4byte\t";
35 Data64bitsDirective = "\t.8byte\t";
36 PrivateGlobalPrefix = "$";
38 ZeroDirective = "\t.space\t";
39 GPRel32Directive = "\t.gpword\t";
40 GPRel64Directive = "\t.gpdword\t";
41 DebugLabelSuffix = "=.";
42 SupportsDebugInformation = true;
43 ExceptionsType = ExceptionHandling::DwarfCFI;
45 DwarfRegNumForCFI = true;