blob: aea9440ee7a47d2c7da06150e1448c6b3f15ad30 [file] [log] [blame]
Matheus Almeidadac77fb2014-03-27 11:39:03 +00001//===-------- MipsELFStreamer.h - ELF Object Output -----------------------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This is a custom MCELFStreamer which allows us to insert some hooks before
11// emitting data into an actual object file.
12//
13//===----------------------------------------------------------------------===//
14
15#ifndef MIPSELFSTREAMER_H
16#define MIPSELFSTREAMER_H
17
18#include "llvm/MC/MCELFStreamer.h"
19#include "llvm/Support/raw_ostream.h"
20
21namespace llvm {
22class MCAsmBackend;
23class MCCodeEmitter;
24class MCContext;
25class MCSubtargetInfo;
26
27class MipsELFStreamer : public MCELFStreamer {
28 const MCSubtargetInfo &STI;
29
30public:
31 MipsELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_ostream &OS,
32 MCCodeEmitter *Emitter, const MCSubtargetInfo &STI)
33 : MCELFStreamer(Context, MAB, OS, Emitter), STI(STI) {}
34
35 virtual ~MipsELFStreamer() {}
36};
37
38MCELFStreamer *createMipsELFStreamer(MCContext &Context, MCAsmBackend &MAB,
39 raw_ostream &OS, MCCodeEmitter *Emitter,
40 const MCSubtargetInfo &STI, bool RelaxAll,
41 bool NoExecStack);
42} // namespace llvm.
43#endif