LCOV - code coverage report
Current view: top level - lib/MC/MCParser - MCTargetAsmParser.cpp (source / functions) Hit Total Coverage
Test: llvm-toolchain.info Lines: 9 9 100.0 %
Date: 2018-10-20 13:21:21 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : //===-- MCTargetAsmParser.cpp - Target Assembly Parser --------------------===//
       2             : //
       3             : //                     The LLVM Compiler Infrastructure
       4             : //
       5             : // This file is distributed under the University of Illinois Open Source
       6             : // License. See LICENSE.TXT for details.
       7             : //
       8             : //===----------------------------------------------------------------------===//
       9             : 
      10             : #include "llvm/MC/MCParser/MCTargetAsmParser.h"
      11             : #include "llvm/MC/MCContext.h"
      12             : 
      13             : using namespace llvm;
      14             : 
      15       18553 : MCTargetAsmParser::MCTargetAsmParser(MCTargetOptions const &MCOptions,
      16             :                                      const MCSubtargetInfo &STI,
      17       18553 :                                      const MCInstrInfo &MII)
      18       18553 :     : MCOptions(MCOptions), STI(&STI), MII(MII) {}
      19             : 
      20             : MCTargetAsmParser::~MCTargetAsmParser() = default;
      21             : 
      22         914 : MCSubtargetInfo &MCTargetAsmParser::copySTI() {
      23         914 :   MCSubtargetInfo &STICopy = getContext().getSubtargetCopy(getSTI());
      24         914 :   STI = &STICopy;
      25         914 :   return STICopy;
      26             : }
      27             : 
      28     3775770 : const MCSubtargetInfo &MCTargetAsmParser::getSTI() const {
      29     3775770 :   return *STI;
      30             : }

Generated by: LCOV version 1.13