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