xref: /freebsd/contrib/llvm-project/llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFStreamer.h (revision 59c8e88e72633afbc47a4ace0d2170d00d51f7dc)
1 //==-- LoongArchELFStreamer.h - LoongArch ELF Target Streamer --*- 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_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHELFSTREAMER_H
10 #define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHELFSTREAMER_H
11 
12 #include "LoongArchTargetStreamer.h"
13 #include "llvm/MC/MCELFStreamer.h"
14 
15 namespace llvm {
16 
17 class LoongArchTargetELFStreamer : public LoongArchTargetStreamer {
18 public:
19   MCELFStreamer &getStreamer();
20   LoongArchTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI);
21 
22   void finish() override;
23 };
24 
25 MCELFStreamer *createLoongArchELFStreamer(MCContext &C,
26                                           std::unique_ptr<MCAsmBackend> MAB,
27                                           std::unique_ptr<MCObjectWriter> MOW,
28                                           std::unique_ptr<MCCodeEmitter> MCE,
29                                           bool RelaxAll);
30 } // end namespace llvm
31 #endif
32