1234353Sdim//===-- MipsMCAsmInfo.cpp - Mips Asm Properties ---------------------------===// 2224133Sdim// 3224133Sdim// The LLVM Compiler Infrastructure 4224133Sdim// 5224133Sdim// This file is distributed under the University of Illinois Open Source 6224133Sdim// License. See LICENSE.TXT for details. 7224133Sdim// 8224133Sdim//===----------------------------------------------------------------------===// 9224133Sdim// 10224133Sdim// This file contains the declarations of the MipsMCAsmInfo properties. 11224133Sdim// 12224133Sdim//===----------------------------------------------------------------------===// 13224133Sdim 14224133Sdim#include "MipsMCAsmInfo.h" 15224133Sdim#include "llvm/ADT/Triple.h" 16224133Sdim 17224133Sdimusing namespace llvm; 18224133Sdim 19234353Sdimvoid MipsMCAsmInfo::anchor() { } 20234353Sdim 21263508SdimMipsMCAsmInfo::MipsMCAsmInfo(StringRef TT) { 22224133Sdim Triple TheTriple(TT); 23226633Sdim if ((TheTriple.getArch() == Triple::mips) || 24226633Sdim (TheTriple.getArch() == Triple::mips64)) 25224133Sdim IsLittleEndian = false; 26224133Sdim 27249423Sdim if ((TheTriple.getArch() == Triple::mips64el) || 28249423Sdim (TheTriple.getArch() == Triple::mips64)) { 29249423Sdim PointerSize = CalleeSaveStackSlotSize = 8; 30249423Sdim } 31249423Sdim 32224133Sdim AlignmentIsInBytes = false; 33224133Sdim Data16bitsDirective = "\t.2byte\t"; 34224133Sdim Data32bitsDirective = "\t.4byte\t"; 35234353Sdim Data64bitsDirective = "\t.8byte\t"; 36224133Sdim PrivateGlobalPrefix = "$"; 37224133Sdim CommentString = "#"; 38224133Sdim ZeroDirective = "\t.space\t"; 39224133Sdim GPRel32Directive = "\t.gpword\t"; 40234353Sdim GPRel64Directive = "\t.gpdword\t"; 41249423Sdim DebugLabelSuffix = "=."; 42224133Sdim SupportsDebugInformation = true; 43224133Sdim ExceptionsType = ExceptionHandling::DwarfCFI; 44224133Sdim HasLEB128 = true; 45224133Sdim DwarfRegNumForCFI = true; 46224133Sdim} 47