llvm-6502/lib/Target/Mips/MipsMCAsmInfo.h
Chris Lattner c7b8814bb4 give MCAsmInfo a 'has little endian' bit. This is unfortunate, but
I really want clients of the streamer to be able to say "emit this
64-bit integer" and have it get broken down right by the streamer.

I may change this in the future, we'll see how it works out.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93934 91177308-0d34-0410-b5e6-96231b3b80d8
2010-01-19 22:42:28 +00:00

45 lines
1.2 KiB
C++

//=====-- MipsMCAsmInfo.h - Mips asm properties ---------------*- C++ -*--====//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file contains the declaration of the MipsMCAsmInfo class.
//
//===----------------------------------------------------------------------===//
#ifndef MIPSTARGETASMINFO_H
#define MIPSTARGETASMINFO_H
#include "llvm/MC/MCAsmInfo.h"
namespace llvm {
class Target;
class StringRef;
class MipsMCAsmInfo : public MCAsmInfo {
public:
explicit MipsMCAsmInfo(const Target &T, const StringRef &TT,
bool isLittleEndian);
};
/// Big Endian MAI.
class MipsBEMCAsmInfo : public MipsMCAsmInfo {
public:
MipsBEMCAsmInfo(const Target &T, const StringRef &TT)
: MipsMCAsmInfo(T, TT, false) {}
};
/// Little Endian MAI.
class MipsLEMCAsmInfo : public MipsMCAsmInfo {
public:
MipsLEMCAsmInfo(const Target &T, const StringRef &TT)
: MipsMCAsmInfo(T, TT, true) {}
};
} // namespace llvm
#endif