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