blob: 5d9242500f6d5db9aa18ce13c9d6d1804341b5c0 [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);
21 if (TheTriple.getArch() == Triple::mips)
22 IsLittleEndian = false;
23
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000024 AlignmentIsInBytes = false;
Akira Hatanakaf2bcad92011-07-01 01:04:43 +000025 Data16bitsDirective = "\t.2byte\t";
Akira Hatanakaaa560002011-05-26 18:59:03 +000026 Data32bitsDirective = "\t.4byte\t";
Benjamin Kramer4db62672009-08-22 22:07:08 +000027 Data64bitsDirective = 0;
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000028 PrivateGlobalPrefix = "$";
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000029 CommentString = "#";
Bruno Cardoso Lopes80ab8f92008-07-14 14:42:54 +000030 ZeroDirective = "\t.space\t";
Chris Lattner19bd0392010-01-25 21:10:10 +000031 GPRel32Directive = "\t.gpword\t";
Akira Hatanakafa63d302011-05-25 23:30:30 +000032 WeakRefDirective = "\t.weak\t";
Akira Hatanakaaa560002011-05-26 18:59:03 +000033
34 SupportsDebugInformation = true;
35 ExceptionsType = ExceptionHandling::DwarfCFI;
36 HasLEB128 = true;
Akira Hatanaka9c6028f2011-07-07 23:56:50 +000037 DwarfRegNumForCFI = true;
Bruno Cardoso Lopes35e43c42007-06-06 07:42:06 +000038}