blob: 641f8cf7af2511c0ee42057ea82cd678468e640b [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 {
Matheus Almeidadac77fb2014-03-27 11:39:03 +000028
29public:
30 MipsELFStreamer(MCContext &Context, MCAsmBackend &MAB, raw_ostream &OS,
31 MCCodeEmitter *Emitter, const MCSubtargetInfo &STI)
Matheus Almeidaa805e852014-03-27 12:02:48 +000032 : MCELFStreamer(Context, MAB, OS, Emitter) {}
Matheus Almeidadac77fb2014-03-27 11:39:03 +000033
34 virtual ~MipsELFStreamer() {}
35};
36
37MCELFStreamer *createMipsELFStreamer(MCContext &Context, MCAsmBackend &MAB,
38 raw_ostream &OS, MCCodeEmitter *Emitter,
39 const MCSubtargetInfo &STI, bool RelaxAll,
40 bool NoExecStack);
41} // namespace llvm.
42#endif