1 //===-- RISCVTargetStreamer.cpp - RISCV Target Streamer Methods -----------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file provides RISCV specific target streamer methods.
12 //===----------------------------------------------------------------------===//
14 #include "RISCVTargetStreamer.h"
15 #include "llvm/Support/FormattedStream.h"
19 RISCVTargetStreamer::RISCVTargetStreamer(MCStreamer &S) : MCTargetStreamer(S) {}
21 // This part is for ascii assembly output
22 RISCVTargetAsmStreamer::RISCVTargetAsmStreamer(MCStreamer &S,
23 formatted_raw_ostream &OS)
24 : RISCVTargetStreamer(S), OS(OS) {}
26 void RISCVTargetAsmStreamer::emitDirectiveOptionRVC() {
27 OS << "\t.option\trvc\n";
30 void RISCVTargetAsmStreamer::emitDirectiveOptionNoRVC() {
31 OS << "\t.option\tnorvc\n";