1 //===-- RISCVELFStreamer.h - RISCV ELF Target Streamer ---------*- C++ -*--===//
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
7 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_LIB_TARGET_RISCV_RISCVELFSTREAMER_H
10 #define LLVM_LIB_TARGET_RISCV_RISCVELFSTREAMER_H
12 #include "RISCVTargetStreamer.h"
13 #include "llvm/MC/MCELFStreamer.h"
17 class RISCVTargetELFStreamer
: public RISCVTargetStreamer
{
19 MCELFStreamer
&getStreamer();
20 RISCVTargetELFStreamer(MCStreamer
&S
, const MCSubtargetInfo
&STI
);
22 virtual void emitDirectiveOptionPush();
23 virtual void emitDirectiveOptionPop();
24 virtual void emitDirectiveOptionRVC();
25 virtual void emitDirectiveOptionNoRVC();
26 virtual void emitDirectiveOptionRelax();
27 virtual void emitDirectiveOptionNoRelax();