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