blob: 62ef463c0f3cdfd6fc2e9dab70317c20f5db9d42 [file] [log] [blame]
Chris Lattneraf76e592009-08-22 20:48:53 +00001//=====-- MipsMCAsmInfo.h - Mips asm properties ---------------*- C++ -*--====//
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +00002//
3// The LLVM Compiler Infrastructure
4//
Chris Lattner4ee451d2007-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 Lopes972f5892007-06-06 07:42:06 +00007//
8//===----------------------------------------------------------------------===//
9//
Chris Lattneraf76e592009-08-22 20:48:53 +000010// This file contains the declaration of the MipsMCAsmInfo class.
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000011//
12//===----------------------------------------------------------------------===//
13
14#ifndef MIPSTARGETASMINFO_H
15#define MIPSTARGETASMINFO_H
16
Chris Lattneraf76e592009-08-22 20:48:53 +000017#include "llvm/MC/MCAsmInfo.h"
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000018
19namespace llvm {
Chris Lattnera7ac47c2009-08-12 07:22:17 +000020 class Target;
21 class StringRef;
22
Chris Lattneraf76e592009-08-22 20:48:53 +000023 class MipsMCAsmInfo : public MCAsmInfo {
Chris Lattner92319e22009-08-11 20:32:51 +000024 public:
Chris Lattnerc7b88142010-01-19 22:42:28 +000025 explicit MipsMCAsmInfo(const Target &T, const StringRef &TT,
26 bool isLittleEndian);
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000027 };
Chris Lattnerc7b88142010-01-19 22:42:28 +000028
29 /// Big Endian MAI.
30 class MipsBEMCAsmInfo : public MipsMCAsmInfo {
31 public:
32 MipsBEMCAsmInfo(const Target &T, const StringRef &TT)
33 : MipsMCAsmInfo(T, TT, false) {}
34 };
35
36 /// Little Endian MAI.
37 class MipsLEMCAsmInfo : public MipsMCAsmInfo {
38 public:
39 MipsLEMCAsmInfo(const Target &T, const StringRef &TT)
40 : MipsMCAsmInfo(T, TT, true) {}
41 };
Bruno Cardoso Lopes972f5892007-06-06 07:42:06 +000042} // namespace llvm
43
44#endif