Coverage Report

Created: 2026-02-14 07:25

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/keystone/llvm/lib/MC/MCAsmInfoCOFF.cpp
Line
Count
Source
1
//===-- MCAsmInfoCOFF.cpp - COFF asm properties -----------------*- C++ -*-===//
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
// This file defines target asm properties related what form asm statements
11
// should take in general on COFF-based targets
12
//
13
//===----------------------------------------------------------------------===//
14
15
#include "llvm/MC/MCAsmInfoCOFF.h"
16
using namespace llvm_ks;
17
18
0
MCAsmInfoCOFF::MCAsmInfoCOFF() {
19
  // MingW 4.5 and later support .comm with log2 alignment, but .lcomm uses byte
20
  // alignment.
21
0
  COMMDirectiveAlignmentIsInBytes = false;
22
0
  LCOMMDirectiveAlignmentType = LCOMM::ByteAlignment;
23
0
  HasDotTypeDotSizeDirective = false;
24
0
  HasSingleParameterDotFile = false;
25
0
  WeakRefDirective = "\t.weak\t";
26
0
  HasLinkOnceDirective = true;
27
28
  // Doesn't support visibility:
29
0
  HiddenVisibilityAttr = HiddenDeclarationVisibilityAttr = MCSA_Invalid;
30
0
  ProtectedVisibilityAttr = MCSA_Invalid;
31
32
  // Set up DWARF directives
33
0
  SupportsDebugInformation = true;
34
0
  NeedsDwarfSectionOffsetDirective = true;
35
36
0
  UseIntegratedAssembler = true;
37
38
  // At least MSVC inline-asm does AShr.
39
0
  UseLogicalShr = false;
40
0
}
41
42
0
MCAsmInfoMicrosoft::MCAsmInfoMicrosoft() {
43
0
}
44
45
0
MCAsmInfoGNUCOFF::MCAsmInfoGNUCOFF() {
46
47
0
}