blob: 71ae8049899581d372ac677c7a4634f6e57647eb [file] [log] [blame]
Akira Hatanakae2489122011-04-15 21:51:11 +00001//===-- MipsMCAsmInfo.cpp - Mips asm properties ---------------------------===//
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +00002//
3// The LLVM Compiler Infrastructure
4//
Chris Lattnerf3ebc3f2007-12-29 20:36:04 +00005// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +00007//
Akira Hatanakae2489122011-04-15 21:51:11 +00008//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +00009//
Chris Lattner7b26fce2009-08-22 20:48:53 +000010// This file contains the declarations of the MipsMCAsmInfo properties.
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +000011//
Akira Hatanakae2489122011-04-15 21:51:11 +000012//===----------------------------------------------------------------------===//
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +000013
Chris Lattner7b26fce2009-08-22 20:48:53 +000014#include "MipsMCAsmInfo.h"
Evan Chenga83b37a2011-07-15 02:09:41 +000015#include "llvm/ADT/Triple.h"
16
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +000017using namespace llvm;
18
Benjamin Kramer92d89982010-07-14 22:38:02 +000019MipsMCAsmInfo::MipsMCAsmInfo(const Target &T, StringRef TT) {
Evan Chenga83b37a2011-07-15 02:09:41 +000020 Triple TheTriple(TT);
Akira Hatanaka3d673cc2011-09-21 03:00:58 +000021 if ((TheTriple.getArch() == Triple::mips) ||
22 (TheTriple.getArch() == Triple::mips64))
Evan Chenga83b37a2011-07-15 02:09:41 +000023 IsLittleEndian = false;
24
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000025 AlignmentIsInBytes = false;
Akira Hatanakaf2bcad92011-07-01 01:04:43 +000026 Data16bitsDirective = "\t.2byte\t";
Akira Hatanakaaa560002011-05-26 18:59:03 +000027 Data32bitsDirective = "\t.4byte\t";
Benjamin Kramer4db62672009-08-22 22:07:08 +000028 Data64bitsDirective = 0;
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000029 PrivateGlobalPrefix = "$";
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000030 CommentString = "#";
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000031 ZeroDirective = "\t.space\t";
Chris Lattner19bd0392010-01-25 21:10:10 +000032 GPRel32Directive = "\t.gpword\t";
Akira Hatanakafa63d302011-05-25 23:30:30 +000033 WeakRefDirective = "\t.weak\t";
Akira Hatanakaaa560002011-05-26 18:59:03 +000034
35 SupportsDebugInformation = true;
36 ExceptionsType = ExceptionHandling::DwarfCFI;
37 HasLEB128 = true;
Akira Hatanaka9c6028f2011-07-07 23:56:50 +000038 DwarfRegNumForCFI = true;
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +000039}