1bdd1243dSDimitry Andric //==-- LoongArchELFStreamer.h - LoongArch ELF Target Streamer --*- C++ -*--===// 2bdd1243dSDimitry Andric // 3bdd1243dSDimitry Andric // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 4bdd1243dSDimitry Andric // See https://llvm.org/LICENSE.txt for license information. 5bdd1243dSDimitry Andric // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 6bdd1243dSDimitry Andric // 7bdd1243dSDimitry Andric //===----------------------------------------------------------------------===// 8bdd1243dSDimitry Andric 9bdd1243dSDimitry Andric #ifndef LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHELFSTREAMER_H 10bdd1243dSDimitry Andric #define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHELFSTREAMER_H 11bdd1243dSDimitry Andric 12bdd1243dSDimitry Andric #include "LoongArchTargetStreamer.h" 13bdd1243dSDimitry Andric #include "llvm/MC/MCELFStreamer.h" 14bdd1243dSDimitry Andric 15bdd1243dSDimitry Andric namespace llvm { 16bdd1243dSDimitry Andric 17bdd1243dSDimitry Andric class LoongArchTargetELFStreamer : public LoongArchTargetStreamer { 18bdd1243dSDimitry Andric public: 19bdd1243dSDimitry Andric MCELFStreamer &getStreamer(); 20bdd1243dSDimitry Andric LoongArchTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI); 21bdd1243dSDimitry Andric 22bdd1243dSDimitry Andric void finish() override; 23bdd1243dSDimitry Andric }; 24bdd1243dSDimitry Andric 25bdd1243dSDimitry Andric MCELFStreamer *createLoongArchELFStreamer(MCContext &C, 26bdd1243dSDimitry Andric std::unique_ptr<MCAsmBackend> MAB, 27bdd1243dSDimitry Andric std::unique_ptr<MCObjectWriter> MOW, 28*0fca6ea1SDimitry Andric std::unique_ptr<MCCodeEmitter> MCE); 29bdd1243dSDimitry Andric } // end namespace llvm 30bdd1243dSDimitry Andric #endif 31