Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/include/llvm/MC/MCTargetOptionsCommandFlags.inc
Line
Count
Source
1
//===-- MCTargetOptionsCommandFlags.h --------------------------*- C++ -*-===//
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 machine code-specific flags that are shared between
10
// different command line tools.
11
//
12
//===----------------------------------------------------------------------===//
13
14
#ifndef LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
15
#define LLVM_MC_MCTARGETOPTIONSCOMMANDFLAGS_H
16
17
#include "llvm/MC/MCTargetOptions.h"
18
#include "llvm/Support/CommandLine.h"
19
using namespace llvm;
20
21
static cl::opt<bool> RelaxAll("mc-relax-all",
22
                       cl::desc("When used with filetype=obj, "
23
                                "relax all fixups in the emitted object file"));
24
25
static cl::opt<bool> IncrementalLinkerCompatible(
26
    "incremental-linker-compatible",
27
    cl::desc(
28
        "When used with filetype=obj, "
29
        "emit an object file which can be used with an incremental linker"));
30
31
static cl::opt<bool> PIECopyRelocations("pie-copy-relocations", cl::desc("PIE Copy Relocations"));
32
33
static cl::opt<int> DwarfVersion("dwarf-version", cl::desc("Dwarf version"),
34
                          cl::init(0));
35
36
static cl::opt<bool> ShowMCInst("asm-show-inst",
37
                         cl::desc("Emit internal instruction representation to "
38
                                  "assembly file"));
39
40
static cl::opt<bool> FatalWarnings("fatal-warnings",
41
                            cl::desc("Treat warnings as errors"));
42
43
static cl::opt<bool> NoWarn("no-warn", cl::desc("Suppress all warnings"));
44
static cl::alias NoWarnW("W", cl::desc("Alias for --no-warn"), cl::aliasopt(NoWarn));
45
46
static cl::opt<bool> NoDeprecatedWarn("no-deprecated-warn",
47
                               cl::desc("Suppress all deprecated warnings"));
48
49
static cl::opt<std::string>
50
ABIName("target-abi", cl::Hidden,
51
        cl::desc("The name of the ABI to be targeted from the backend."),
52
        cl::init(""));
53
54
35.9k
static MCTargetOptions InitMCTargetOptionsFromFlags() {
55
35.9k
  MCTargetOptions Options;
56
35.9k
  Options.MCRelaxAll = RelaxAll;
57
35.9k
  Options.MCIncrementalLinkerCompatible = IncrementalLinkerCompatible;
58
35.9k
  Options.MCPIECopyRelocations = PIECopyRelocations;
59
35.9k
  Options.DwarfVersion = DwarfVersion;
60
35.9k
  Options.ShowMCInst = ShowMCInst;
61
35.9k
  Options.ABIName = ABIName;
62
35.9k
  Options.MCFatalWarnings = FatalWarnings;
63
35.9k
  Options.MCNoWarn = NoWarn;
64
35.9k
  Options.MCNoDeprecatedWarn = NoDeprecatedWarn;
65
35.9k
  return Options;
66
35.9k
}
opt.cpp:InitMCTargetOptionsFromFlags()
Line
Count
Source
54
10.9k
static MCTargetOptions InitMCTargetOptionsFromFlags() {
55
10.9k
  MCTargetOptions Options;
56
10.9k
  Options.MCRelaxAll = RelaxAll;
57
10.9k
  Options.MCIncrementalLinkerCompatible = IncrementalLinkerCompatible;
58
10.9k
  Options.MCPIECopyRelocations = PIECopyRelocations;
59
10.9k
  Options.DwarfVersion = DwarfVersion;
60
10.9k
  Options.ShowMCInst = ShowMCInst;
61
10.9k
  Options.ABIName = ABIName;
62
10.9k
  Options.MCFatalWarnings = FatalWarnings;
63
10.9k
  Options.MCNoWarn = NoWarn;
64
10.9k
  Options.MCNoDeprecatedWarn = NoDeprecatedWarn;
65
10.9k
  return Options;
66
10.9k
}
llc.cpp:InitMCTargetOptionsFromFlags()
Line
Count
Source
54
24.9k
static MCTargetOptions InitMCTargetOptionsFromFlags() {
55
24.9k
  MCTargetOptions Options;
56
24.9k
  Options.MCRelaxAll = RelaxAll;
57
24.9k
  Options.MCIncrementalLinkerCompatible = IncrementalLinkerCompatible;
58
24.9k
  Options.MCPIECopyRelocations = PIECopyRelocations;
59
24.9k
  Options.DwarfVersion = DwarfVersion;
60
24.9k
  Options.ShowMCInst = ShowMCInst;
61
24.9k
  Options.ABIName = ABIName;
62
24.9k
  Options.MCFatalWarnings = FatalWarnings;
63
24.9k
  Options.MCNoWarn = NoWarn;
64
24.9k
  Options.MCNoDeprecatedWarn = NoDeprecatedWarn;
65
24.9k
  return Options;
66
24.9k
}
67
68
#endif