1 //===- MCObjectStreamer.h - MCStreamer Object File Interface ----*- C++ -*-===//
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 #ifndef LLVM_MC_MCOBJECTSTREAMER_H
11 #define LLVM_MC_MCOBJECTSTREAMER_H
13 #include "llvm/MC/MCStreamer.h"
19 class TargetAsmBackend;
22 /// \brief Streaming object file generation interface.
24 /// This class provides an implementation of the MCStreamer interface which is
25 /// suitable for use with the assembler backend. Specific object file formats
26 /// are expected to subclass this interface to implement directives specific
27 /// to that file format or custom semantics expected by the object writer
29 class MCObjectStreamer : public MCStreamer {
30 MCAssembler *Assembler;
33 MCObjectStreamer(MCContext &Context, TargetAsmBackend &TAB,
34 raw_ostream &_OS, MCCodeEmitter *_Emitter);
38 MCAssembler &getAssembler() { return *Assembler; }
41 } // end namespace llvm