LLVM API Documentation

MipsMCAsmInfo.cpp
Go to the documentation of this file.
00001 //===-- MipsMCAsmInfo.cpp - Mips Asm Properties ---------------------------===//
00002 //
00003 //                     The LLVM Compiler Infrastructure
00004 //
00005 // This file is distributed under the University of Illinois Open Source
00006 // License. See LICENSE.TXT for details.
00007 //
00008 //===----------------------------------------------------------------------===//
00009 //
00010 // This file contains the declarations of the MipsMCAsmInfo properties.
00011 //
00012 //===----------------------------------------------------------------------===//
00013 
00014 #include "MipsMCAsmInfo.h"
00015 #include "llvm/ADT/Triple.h"
00016 
00017 using namespace llvm;
00018 
00019 void MipsMCAsmInfo::anchor() { }
00020 
00021 MipsMCAsmInfo::MipsMCAsmInfo(StringRef TT) {
00022   Triple TheTriple(TT);
00023   if ((TheTriple.getArch() == Triple::mips) ||
00024       (TheTriple.getArch() == Triple::mips64))
00025     IsLittleEndian = false;
00026 
00027   if ((TheTriple.getArch() == Triple::mips64el) ||
00028       (TheTriple.getArch() == Triple::mips64)) {
00029     PointerSize = CalleeSaveStackSlotSize = 8;
00030   }
00031 
00032   AlignmentIsInBytes          = false;
00033   Data16bitsDirective         = "\t.2byte\t";
00034   Data32bitsDirective         = "\t.4byte\t";
00035   Data64bitsDirective         = "\t.8byte\t";
00036   PrivateGlobalPrefix         = "$";
00037   CommentString               = "#";
00038   ZeroDirective               = "\t.space\t";
00039   GPRel32Directive            = "\t.gpword\t";
00040   GPRel64Directive            = "\t.gpdword\t";
00041   UseAssignmentForEHBegin = true;
00042   SupportsDebugInformation = true;
00043   ExceptionsType = ExceptionHandling::DwarfCFI;
00044   DwarfRegNumForCFI = true;
00045 }