2012-02-17 08:55:11 +00:00
|
|
|
//===-- MipsMCAsmInfo.cpp - Mips Asm Properties ---------------------------===//
|
2007-06-06 07:42:06 +00:00
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
2007-12-29 20:36:04 +00:00
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
2007-06-06 07:42:06 +00:00
|
|
|
//
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-06-06 07:42:06 +00:00
|
|
|
//
|
2009-08-22 20:48:53 +00:00
|
|
|
// This file contains the declarations of the MipsMCAsmInfo properties.
|
2007-06-06 07:42:06 +00:00
|
|
|
//
|
2011-04-15 21:51:11 +00:00
|
|
|
//===----------------------------------------------------------------------===//
|
2007-06-06 07:42:06 +00:00
|
|
|
|
2009-08-22 20:48:53 +00:00
|
|
|
#include "MipsMCAsmInfo.h"
|
2011-07-15 02:09:41 +00:00
|
|
|
#include "llvm/ADT/Triple.h"
|
|
|
|
|
2007-06-06 07:42:06 +00:00
|
|
|
using namespace llvm;
|
|
|
|
|
2011-12-20 02:50:00 +00:00
|
|
|
void MipsMCAsmInfo::anchor() { }
|
|
|
|
|
2013-05-10 18:16:59 +00:00
|
|
|
MipsMCAsmInfo::MipsMCAsmInfo(StringRef TT) {
|
2011-07-15 02:09:41 +00:00
|
|
|
Triple TheTriple(TT);
|
2011-09-21 03:00:58 +00:00
|
|
|
if ((TheTriple.getArch() == Triple::mips) ||
|
|
|
|
(TheTriple.getArch() == Triple::mips64))
|
2011-07-15 02:09:41 +00:00
|
|
|
IsLittleEndian = false;
|
|
|
|
|
2013-01-08 18:53:20 +00:00
|
|
|
if ((TheTriple.getArch() == Triple::mips64el) ||
|
2013-01-23 16:22:04 +00:00
|
|
|
(TheTriple.getArch() == Triple::mips64)) {
|
|
|
|
PointerSize = CalleeSaveStackSlotSize = 8;
|
|
|
|
}
|
2013-01-08 18:53:20 +00:00
|
|
|
|
2008-07-14 14:42:54 +00:00
|
|
|
AlignmentIsInBytes = false;
|
2011-07-01 01:04:43 +00:00
|
|
|
Data16bitsDirective = "\t.2byte\t";
|
2011-05-26 18:59:03 +00:00
|
|
|
Data32bitsDirective = "\t.4byte\t";
|
2011-12-20 22:52:19 +00:00
|
|
|
Data64bitsDirective = "\t.8byte\t";
|
2008-07-14 14:42:54 +00:00
|
|
|
PrivateGlobalPrefix = "$";
|
|
|
|
CommentString = "#";
|
|
|
|
ZeroDirective = "\t.space\t";
|
2010-01-25 21:10:10 +00:00
|
|
|
GPRel32Directive = "\t.gpword\t";
|
2012-02-03 04:33:00 +00:00
|
|
|
GPRel64Directive = "\t.gpdword\t";
|
2012-12-16 04:00:45 +00:00
|
|
|
DebugLabelSuffix = "=.";
|
2011-05-26 18:59:03 +00:00
|
|
|
SupportsDebugInformation = true;
|
|
|
|
ExceptionsType = ExceptionHandling::DwarfCFI;
|
|
|
|
HasLEB128 = true;
|
2011-07-07 23:56:50 +00:00
|
|
|
DwarfRegNumForCFI = true;
|
2007-06-06 07:42:06 +00:00
|
|
|
}
|