diff options
Diffstat (limited to 'lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h')
-rw-r--r-- | lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h b/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h index a241cdebdcc8..f5eda112817e 100644 --- a/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h +++ b/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h @@ -1,4 +1,4 @@ -//===-------- MipsELFStreamer.h - ELF Object Output -----------------------===// +//===- MipsELFStreamer.h - ELF Object Output --------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // @@ -21,6 +21,7 @@ #include <memory> namespace llvm { + class MCAsmBackend; class MCCodeEmitter; class MCContext; @@ -31,12 +32,10 @@ class MipsELFStreamer : public MCELFStreamer { MipsRegInfoRecord *RegInfoRecord; SmallVector<MCSymbol*, 4> Labels; - public: MipsELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter) : MCELFStreamer(Context, MAB, OS, Emitter) { - RegInfoRecord = new MipsRegInfoRecord(this, Context); MipsOptionRecords.push_back( std::unique_ptr<MipsRegInfoRecord>(RegInfoRecord)); @@ -46,12 +45,13 @@ public: /// \p Inst is actually emitted. For example, we can inspect the operands and /// gather sufficient information that allows us to reason about the register /// usage for the translation unit. - void EmitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI) override; + void EmitInstruction(const MCInst &Inst, const MCSubtargetInfo &STI, + bool = false) override; /// Overriding this function allows us to record all labels that should be /// marked as microMIPS. Based on this data marking is done in /// EmitInstruction. - void EmitLabel(MCSymbol *Symbol) override; + void EmitLabel(MCSymbol *Symbol, SMLoc Loc = SMLoc()) override; /// Overriding this function allows us to dismiss all labels that are /// candidates for marking as microMIPS when .section directive is processed. @@ -72,5 +72,6 @@ public: MCELFStreamer *createMipsELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_pwrite_stream &OS, MCCodeEmitter *Emitter, bool RelaxAll); -} // namespace llvm. -#endif +} // end namespace llvm + +#endif // LLVM_LIB_TARGET_MIPS_MCTARGETDESC_MIPSELFSTREAMER_H |