2011-04-15 21:51: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;
|
|
|
|
|
2010-07-14 22:38:02 +00:00
|
|
|
MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) {
|
2011-07-15 02:09:41 +00:00
|
|
|
Triple TheTriple(TT);
|
|
|
|
if (TheTriple.getArch() == Triple::mips)
|
|
|
|
IsLittleEndian = false;
|
|
|
|
|
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";
|
2009-08-22 22:07:08 +00:00
|
|
|
Data64bitsDirective = 0;
|
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";
|
2011-05-25 23:30:30 +00:00
|
|
|
WeakRefDirective = "\t.weak\t";
|
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
|
|
|
}
|