1 //=== MipsELFStreamer.h - MipsELFStreamer ------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENCE.TXT for details.
8 //===-------------------------------------------------------------------===//
9 #ifndef MIPSELFSTREAMER_H_
10 #define MIPSELFSTREAMER_H_
12 #include "llvm/MC/MCELFStreamer.h"
19 class MipsELFStreamer : public MCELFStreamer {
21 MipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,
22 raw_ostream &OS, MCCodeEmitter *Emitter,
23 bool RelaxAll, bool NoExecStack)
24 : MCELFStreamer(SK_MipsELFStreamer, Context, TAB, OS, Emitter) {
28 void emitELFHeaderFlagsCG(const MipsSubtarget &Subtarget);
29 void emitMipsSTOCG(const MipsSubtarget &Subtarget,
33 static bool classof(const MCStreamer *S) {
34 return S->getKind() == SK_MipsELFStreamer;
38 MCELFStreamer* createMipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,
39 raw_ostream &OS, MCCodeEmitter *Emitter,
40 bool RelaxAll, bool NoExecStack);
43 #endif /* MIPSELFSTREAMER_H_ */