Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/RISCV/MCTargetDesc/RISCVTargetStreamer.cpp
Line
Count
Source
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"
14
#include "llvm/Support/FormattedStream.h"
15
16
using namespace llvm;
17
18
745
RISCVTargetStreamer::RISCVTargetStreamer(MCStreamer &S) : MCTargetStreamer(S) {}
19
20
// This part is for ascii assembly output
21
RISCVTargetAsmStreamer::RISCVTargetAsmStreamer(MCStreamer &S,
22
                                               formatted_raw_ostream &OS)
23
500
    : RISCVTargetStreamer(S), OS(OS) {}
24
25
9
void RISCVTargetAsmStreamer::emitDirectiveOptionPush() {
26
9
  OS << "\t.option\tpush\n";
27
9
}
28
29
10
void RISCVTargetAsmStreamer::emitDirectiveOptionPop() {
30
10
  OS << "\t.option\tpop\n";
31
10
}
32
33
11
void RISCVTargetAsmStreamer::emitDirectiveOptionRVC() {
34
11
  OS << "\t.option\trvc\n";
35
11
}
36
37
8
void RISCVTargetAsmStreamer::emitDirectiveOptionNoRVC() {
38
8
  OS << "\t.option\tnorvc\n";
39
8
}
40
41
4
void RISCVTargetAsmStreamer::emitDirectiveOptionRelax() {
42
4
  OS << "\t.option\trelax\n";
43
4
}
44
45
8
void RISCVTargetAsmStreamer::emitDirectiveOptionNoRelax() {
46
8
  OS << "\t.option\tnorelax\n";
47
8
}