Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/MC/MCParser/MCTargetAsmParser.cpp
Line
Count
Source
1
//===-- MCTargetAsmParser.cpp - Target Assembly Parser --------------------===//
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
#include "llvm/MC/MCParser/MCTargetAsmParser.h"
10
#include "llvm/MC/MCContext.h"
11
12
using namespace llvm;
13
14
MCTargetAsmParser::MCTargetAsmParser(MCTargetOptions const &MCOptions,
15
                                     const MCSubtargetInfo &STI,
16
                                     const MCInstrInfo &MII)
17
18.4k
    : MCOptions(MCOptions), STI(&STI), MII(MII) {}
18
19
18.4k
MCTargetAsmParser::~MCTargetAsmParser() = default;
20
21
1.59k
MCSubtargetInfo &MCTargetAsmParser::copySTI() {
22
1.59k
  MCSubtargetInfo &STICopy = getContext().getSubtargetCopy(getSTI());
23
1.59k
  STI = &STICopy;
24
1.59k
  return STICopy;
25
1.59k
}
26
27
8.69M
const MCSubtargetInfo &MCTargetAsmParser::getSTI() const {
28
8.69M
  return *STI;
29
8.69M
}