Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/lib/Target/Mips/MCTargetDesc/MipsMCAsmInfo.cpp
Line
Count
Source (jump to first uncovered line)
1
//===-- MipsMCAsmInfo.cpp - Mips 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
// This file contains the declarations of the MipsMCAsmInfo properties.
10
//
11
//===----------------------------------------------------------------------===//
12
13
#include "MipsMCAsmInfo.h"
14
#include "llvm/ADT/Triple.h"
15
16
using namespace llvm;
17
18
0
void MipsMCAsmInfo::anchor() { }
19
20
3.82k
MipsMCAsmInfo::MipsMCAsmInfo(const Triple &TheTriple) {
21
3.82k
  IsLittleEndian = TheTriple.isLittleEndian();
22
3.82k
23
3.82k
  if (TheTriple.isMIPS64() && 
TheTriple.getEnvironment() != Triple::GNUABIN321.20k
)
24
1.17k
    CodePointerSize = CalleeSaveStackSlotSize = 8;
25
3.82k
26
3.82k
  // FIXME: This condition isn't quite right but it's the best we can do until
27
3.82k
  //        this object can identify the ABI. It will misbehave when using O32
28
3.82k
  //        on a mips64*-* triple.
29
3.82k
  if (TheTriple.isMIPS32()) {
30
2.61k
    PrivateGlobalPrefix = "$";
31
2.61k
    PrivateLabelPrefix = "$";
32
2.61k
  }
33
3.82k
34
3.82k
  AlignmentIsInBytes          = false;
35
3.82k
  Data16bitsDirective         = "\t.2byte\t";
36
3.82k
  Data32bitsDirective         = "\t.4byte\t";
37
3.82k
  Data64bitsDirective         = "\t.8byte\t";
38
3.82k
  CommentString               = "#";
39
3.82k
  ZeroDirective               = "\t.space\t";
40
3.82k
  GPRel32Directive            = "\t.gpword\t";
41
3.82k
  GPRel64Directive            = "\t.gpdword\t";
42
3.82k
  DTPRel32Directive           = "\t.dtprelword\t";
43
3.82k
  DTPRel64Directive           = "\t.dtpreldword\t";
44
3.82k
  TPRel32Directive            = "\t.tprelword\t";
45
3.82k
  TPRel64Directive            = "\t.tpreldword\t";
46
3.82k
  UseAssignmentForEHBegin = true;
47
3.82k
  SupportsDebugInformation = true;
48
3.82k
  ExceptionsType = ExceptionHandling::DwarfCFI;
49
3.82k
  DwarfRegNumForCFI = true;
50
3.82k
  HasMipsExpressions = true;
51
3.82k
  UseIntegratedAssembler = true;
52
3.82k
}