brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 894ea96 Raw
36 lines · c
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-exception6//7//===----------------------------------------------------------------------===//8 9#ifndef LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHELFSTREAMER_H10#define LLVM_LIB_TARGET_LOONGARCH_MCTARGETDESC_LOONGARCHELFSTREAMER_H11 12#include "LoongArchTargetStreamer.h"13#include "llvm/MC/MCELFStreamer.h"14 15namespace llvm {16 17class LoongArchTargetELFStreamer : public LoongArchTargetStreamer {18public:19  MCELFStreamer &getStreamer();20  LoongArchTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI);21 22  void emitDirectiveOptionPush() override;23  void emitDirectiveOptionPop() override;24  void emitDirectiveOptionRelax() override;25  void emitDirectiveOptionNoRelax() override;26 27  void finish() override;28};29 30MCELFStreamer *createLoongArchELFStreamer(MCContext &C,31                                          std::unique_ptr<MCAsmBackend> MAB,32                                          std::unique_ptr<MCObjectWriter> MOW,33                                          std::unique_ptr<MCCodeEmitter> MCE);34} // end namespace llvm35#endif36