LLVM  10.0.0svn
RISCVTargetStreamer.cpp
Go to the documentation of this file.
1 //===-- RISCVTargetStreamer.cpp - RISCV Target Streamer Methods -----------===//
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 // This file provides RISCV specific target streamer methods.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "RISCVTargetStreamer.h"
15 
16 using namespace llvm;
17 
19 
20 // This part is for ascii assembly output
23  : RISCVTargetStreamer(S), OS(OS) {}
24 
26  OS << "\t.option\tpush\n";
27 }
28 
30  OS << "\t.option\tpop\n";
31 }
32 
34  OS << "\t.option\trvc\n";
35 }
36 
38  OS << "\t.option\tnorvc\n";
39 }
40 
42  OS << "\t.option\trelax\n";
43 }
44 
46  OS << "\t.option\tnorelax\n";
47 }
This class represents lattice values for constants.
Definition: AllocatorList.h:23
formatted_raw_ostream - A raw_ostream that wraps another one and keeps track of line and column posit...
Target specific streamer interface.
Definition: MCStreamer.h:85
RISCVTargetAsmStreamer(MCStreamer &S, formatted_raw_ostream &OS)
Streaming machine code generation interface.
Definition: MCStreamer.h:190