1 //===-- RISCVELFStreamer.h - RISCV 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_RISCV_RISCVELFSTREAMER_H 10 #define LLVM_LIB_TARGET_RISCV_RISCVELFSTREAMER_H 11 12 #include "RISCVTargetStreamer.h" 13 #include "llvm/MC/MCELFStreamer.h" 14 15 namespace llvm { 16 17 class RISCVTargetELFStreamer : public RISCVTargetStreamer { 18 public: 19 MCELFStreamer &getStreamer(); 20 RISCVTargetELFStreamer(MCStreamer &S, const MCSubtargetInfo &STI); 21 22 virtual void emitDirectiveOptionPush(); 23 virtual void emitDirectiveOptionPop(); 24 virtual void emitDirectiveOptionRVC(); 25 virtual void emitDirectiveOptionNoRVC(); 26 virtual void emitDirectiveOptionRelax(); 27 virtual void emitDirectiveOptionNoRelax(); 28 }; 29 } 30 #endif 31