1 //===-------- MipsELFStreamer.h - ELF Object Output -----------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This is a custom MCELFStreamer which allows us to insert some hooks before
11 // emitting data into an actual object file.
13 //===----------------------------------------------------------------------===//
15 #ifndef MIPSELFSTREAMER_H
16 #define MIPSELFSTREAMER_H
18 #include "llvm/MC/MCELFStreamer.h"
19 #include "llvm/Support/raw_ostream.h"
25 class MCSubtargetInfo;
27 class MipsELFStreamer : public MCELFStreamer {
30 MipsELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_ostream &OS,
31 MCCodeEmitter *Emitter, const MCSubtargetInfo &STI)
32 : MCELFStreamer(Context, MAB, OS, Emitter) {}
34 virtual ~MipsELFStreamer() {}
37 MCELFStreamer *createMipsELFStreamer(MCContext &Context, MCAsmBackend &MAB,
38 raw_ostream &OS, MCCodeEmitter *Emitter,
39 const MCSubtargetInfo &STI, bool RelaxAll,