1 | //===- MCGOFFStreamer.h - MCStreamer GOFF Object File Interface--*- C++ -*-===// |
2 | // |
3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
4 | // See https://llvm.org/LICENSE.txt for license information. |
5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
6 | // |
7 | //===----------------------------------------------------------------------===// |
8 | |
9 | #ifndef LLVM_MC_MCGOFFSTREAMER_H |
10 | #define LLVM_MC_MCGOFFSTREAMER_H |
11 | |
12 | #include "llvm/MC/MCObjectStreamer.h" |
13 | #include "llvm/MC/MCObjectWriter.h" |
14 | |
15 | namespace llvm { |
16 | |
17 | class MCGOFFStreamer : public MCObjectStreamer { |
18 | public: |
19 | MCGOFFStreamer(MCContext &Context, std::unique_ptr<MCAsmBackend> MAB, |
20 | std::unique_ptr<MCObjectWriter> OW, |
21 | std::unique_ptr<MCCodeEmitter> Emitter) |
22 | : MCObjectStreamer(Context, std::move(MAB), std::move(OW), |
23 | std::move(Emitter)) {} |
24 | |
25 | ~MCGOFFStreamer() override; |
26 | |
27 | bool emitSymbolAttribute(MCSymbol *Symbol, MCSymbolAttr Attribute) override { |
28 | return false; |
29 | } |
30 | void emitCommonSymbol(MCSymbol *Symbol, uint64_t Size, |
31 | Align ByteAlignment) override {} |
32 | void emitInstToData(const MCInst &Inst, const MCSubtargetInfo &) override {} |
33 | void emitZerofill(MCSection *Section, MCSymbol *Symbol = nullptr, |
34 | uint64_t Size = 0, Align ByteAlignment = Align(1), |
35 | SMLoc Loc = SMLoc()) override {} |
36 | }; |
37 | |
38 | } // end namespace llvm |
39 | |
40 | #endif |
41 | |