Coverage Report

Created: 2025-12-27 06:12

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/keystone/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonMCExpr.cpp
Line
Count
Source
1
//===-- HexagonMCExpr.cpp - Hexagon specific MC expression classes
2
//----------===//
3
//
4
//                     The LLVM Compiler Infrastructure
5
//
6
// This file is distributed under the University of Illinois Open Source
7
// License. See LICENSE.TXT for details.
8
//
9
//===----------------------------------------------------------------------===//
10
11
#include "HexagonMCExpr.h"
12
#include "llvm/MC/MCContext.h"
13
#include "llvm/MC/MCValue.h"
14
#include "llvm/Support/raw_ostream.h"
15
16
using namespace llvm_ks;
17
18
#define DEBUG_TYPE "hexagon-mcexpr"
19
20
HexagonNoExtendOperand *HexagonNoExtendOperand::Create(MCExpr const *Expr,
21
102
                                                       MCContext &Ctx) {
22
102
  return new (Ctx) HexagonNoExtendOperand(Expr);
23
102
}
24
25
bool HexagonNoExtendOperand::evaluateAsRelocatableImpl(
26
210
    MCValue &Res, MCAsmLayout const *Layout, MCFixup const *Fixup) const {
27
210
  return Expr->evaluateAsRelocatable(Res, Layout, Fixup);
28
210
}
29
30
0
void HexagonNoExtendOperand::visitUsedExpr(MCStreamer &Streamer) const {}
31
32
0
MCFragment *llvm_ks::HexagonNoExtendOperand::findAssociatedFragment() const {
33
0
  return Expr->findAssociatedFragment();
34
0
}
35
36
72
void HexagonNoExtendOperand::fixELFSymbolsInTLSFixups(MCAssembler &Asm) const {}
37
38
0
MCExpr const *HexagonNoExtendOperand::getExpr() const { return Expr; }
39
40
0
bool HexagonNoExtendOperand::classof(MCExpr const *E) {
41
0
  return E->getKind() == MCExpr::Target;
42
0
}
43
44
HexagonNoExtendOperand::HexagonNoExtendOperand(MCExpr const *Expr)
45
102
    : Expr(Expr) {}
46
47
0
void HexagonNoExtendOperand::printImpl(raw_ostream &OS, const MCAsmInfo *MAI) const {
48
0
  Expr->print(OS, MAI);
49
0
}