Coverage Report

Created: 2024-01-17 10:31

/src/llvm-project/llvm/lib/Target/SystemZ/MCTargetDesc/SystemZMCAsmInfo.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- SystemZMCAsmInfo.cpp - SystemZ asm properties ---------------------===//
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 "SystemZMCAsmInfo.h"
10
#include "llvm/MC/MCContext.h"
11
#include "llvm/MC/MCSectionELF.h"
12
13
using namespace llvm;
14
15
0
SystemZMCAsmInfoELF::SystemZMCAsmInfoELF(const Triple &TT) {
16
0
  AssemblerDialect = AD_ATT;
17
0
  CalleeSaveStackSlotSize = 8;
18
0
  CodePointerSize = 8;
19
0
  Data64bitsDirective = "\t.quad\t";
20
0
  ExceptionsType = ExceptionHandling::DwarfCFI;
21
0
  IsLittleEndian = false;
22
0
  MaxInstLength = 6;
23
0
  SupportsDebugInformation = true;
24
0
  UsesELFSectionDirectiveForBSS = true;
25
0
  ZeroDirective = "\t.space\t";
26
0
}
27
28
0
SystemZMCAsmInfoGOFF::SystemZMCAsmInfoGOFF(const Triple &TT) {
29
0
  AllowAdditionalComments = false;
30
0
  AllowAtInName = true;
31
0
  AllowAtAtStartOfIdentifier = true;
32
0
  AllowDollarAtStartOfIdentifier = true;
33
0
  AllowHashAtStartOfIdentifier = true;
34
0
  AssemblerDialect = AD_HLASM;
35
0
  CalleeSaveStackSlotSize = 8;
36
0
  CodePointerSize = 8;
37
0
  CommentString = "*";
38
0
  DotIsPC = false;
39
0
  EmitGNUAsmStartIndentationMarker = false;
40
0
  EmitLabelsInUpperCase = true;
41
0
  ExceptionsType = ExceptionHandling::ZOS;
42
0
  IsLittleEndian = false;
43
0
  MaxInstLength = 6;
44
0
  RestrictCommentStringToStartOfStatement = true;
45
0
  StarIsPC = true;
46
0
  SupportsDebugInformation = true;
47
0
}
48
49
0
bool SystemZMCAsmInfoGOFF::isAcceptableChar(char C) const {
50
0
  return MCAsmInfo::isAcceptableChar(C) || C == '#';
51
0
}