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

          Line data    Source code
       1             : //===-- MCRelocationInfo.cpp ----------------------------------------------===//
       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/MCDisassembler/MCRelocationInfo.h"
      11             : #include "llvm-c/Disassembler.h"
      12             : #include "llvm/Support/TargetRegistry.h"
      13             : 
      14             : using namespace llvm;
      15             : 
      16          87 : MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) : Ctx(Ctx) {}
      17             : 
      18             : MCRelocationInfo::~MCRelocationInfo() = default;
      19             : 
      20             : const MCExpr *
      21         154 : MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr,
      22             :                                                unsigned VariantKind) {
      23         154 :   if (VariantKind != LLVMDisassembler_VariantKind_None)
      24           0 :     return nullptr;
      25             :   return SubExpr;
      26             : }
      27             : 
      28          54 : MCRelocationInfo *llvm::createMCRelocationInfo(const Triple &TT,
      29             :                                                MCContext &Ctx) {
      30          54 :   return new MCRelocationInfo(Ctx);
      31             : }

Generated by: LCOV version 1.13