Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/MC/MCDisassembler/MCRelocationInfo.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- MCRelocationInfo.cpp ----------------------------------------------===//
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/MCDisassembler/MCRelocationInfo.h"
10
#include "llvm-c/Disassembler.h"
11
#include "llvm/Support/TargetRegistry.h"
12
13
using namespace llvm;
14
15
107
MCRelocationInfo::MCRelocationInfo(MCContext &Ctx) : Ctx(Ctx) {}
16
17
107
MCRelocationInfo::~MCRelocationInfo() = default;
18
19
const MCExpr *
20
MCRelocationInfo::createExprForCAPIVariantKind(const MCExpr *SubExpr,
21
161
                                               unsigned VariantKind) {
22
161
  if (VariantKind != LLVMDisassembler_VariantKind_None)
23
161
    
return nullptr0
;
24
161
  return SubExpr;
25
161
}
26
27
MCRelocationInfo *llvm::createMCRelocationInfo(const Triple &TT,
28
72
                                               MCContext &Ctx) {
29
72
  return new MCRelocationInfo(Ctx);
30
72
}