diff options
Diffstat (limited to 'contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h')
-rw-r--r-- | contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h b/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h index 2d041dcbf040..d12d3195521a 100644 --- a/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h +++ b/contrib/llvm/lib/Target/Mips/MCTargetDesc/MipsMCCodeEmitter.h @@ -1,4 +1,4 @@ -//===-- MipsMCCodeEmitter.h - Convert Mips Code to Machine Code -----------===// +//===- MipsMCCodeEmitter.h - Convert Mips Code to Machine Code --*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -10,29 +10,25 @@ // This file defines the MipsMCCodeEmitter class. // //===----------------------------------------------------------------------===// -// #ifndef LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCCODEEMITTER_H #define LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCCODEEMITTER_H #include "llvm/MC/MCCodeEmitter.h" -#include "llvm/Support/DataTypes.h" - -using namespace llvm; +#include <cstdint> namespace llvm { + class MCContext; class MCExpr; +class MCFixup; class MCInst; class MCInstrInfo; -class MCFixup; class MCOperand; class MCSubtargetInfo; class raw_ostream; class MipsMCCodeEmitter : public MCCodeEmitter { - MipsMCCodeEmitter(const MipsMCCodeEmitter &) = delete; - void operator=(const MipsMCCodeEmitter &) = delete; const MCInstrInfo &MCII; MCContext &Ctx; bool IsLittleEndian; @@ -43,8 +39,9 @@ class MipsMCCodeEmitter : public MCCodeEmitter { public: MipsMCCodeEmitter(const MCInstrInfo &mcii, MCContext &Ctx_, bool IsLittle) : MCII(mcii), Ctx(Ctx_), IsLittleEndian(IsLittle) {} - - ~MipsMCCodeEmitter() override {} + MipsMCCodeEmitter(const MipsMCCodeEmitter &) = delete; + MipsMCCodeEmitter &operator=(const MipsMCCodeEmitter &) = delete; + ~MipsMCCodeEmitter() override = default; void EmitByte(unsigned char C, raw_ostream &OS) const; @@ -270,9 +267,11 @@ public: unsigned getRegisterListOpValue16(const MCInst &MI, unsigned OpNo, SmallVectorImpl<MCFixup> &Fixups, const MCSubtargetInfo &STI) const; - private: + +private: void LowerCompactBranch(MCInst& Inst) const; -}; // class MipsMCCodeEmitter -} // namespace llvm. +}; + +} // end namespace llvm -#endif +#endif // LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSMCCODEEMITTER_H |