aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MCTargetDesc/MipsELFStreamer.h
blob: 0d067e063b3dd818c36997aaf0b826c79f84701d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//=== MipsELFStreamer.h - MipsELFStreamer ------------------------------===//
//
//                    The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENCE.TXT for details.
//
//===-------------------------------------------------------------------===//
#ifndef MIPSELFSTREAMER_H_
#define MIPSELFSTREAMER_H_

#include "llvm/MC/MCELFStreamer.h"

namespace llvm {
class MipsSubtarget;

class MipsELFStreamer : public MCELFStreamer {
public:
  MipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,
                  raw_ostream &OS, MCCodeEmitter *Emitter,
                  bool RelaxAll, bool NoExecStack)
    : MCELFStreamer(Context, TAB, OS, Emitter) {
  }

  ~MipsELFStreamer() {}
  void emitELFHeaderFlagsCG(const MipsSubtarget &Subtarget);
//  void emitELFHeaderFlagCG(unsigned Val);
};

  MCELFStreamer* createMipsELFStreamer(MCContext &Context, MCAsmBackend &TAB,
                                       raw_ostream &OS, MCCodeEmitter *Emitter,
                                       bool RelaxAll, bool NoExecStack);
}

#endif /* MIPSELFSTREAMER_H_ */