Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/lib/Driver/ToolChains/TCE.cpp
Line
Count
Source (jump to first uncovered line)
1
//===--- TCE.cpp - TCE ToolChain Implementations ----------------*- 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
#include "TCE.h"
10
#include "CommonArgs.h"
11
12
using namespace clang::driver;
13
using namespace clang::driver::toolchains;
14
using namespace clang;
15
using namespace llvm::opt;
16
17
/// TCEToolChain - A tool chain using the llvm bitcode tools to perform
18
/// all subcommands. See http://tce.cs.tut.fi for our peculiar target.
19
/// Currently does not support anything else but compilation.
20
21
TCEToolChain::TCEToolChain(const Driver &D, const llvm::Triple &Triple,
22
                           const ArgList &Args)
23
0
    : ToolChain(D, Triple, Args) {
24
0
  // Path mangling to find libexec
25
0
  std::string Path(getDriver().Dir);
26
0
27
0
  Path += "/../libexec";
28
0
  getProgramPaths().push_back(Path);
29
0
}
30
31
0
TCEToolChain::~TCEToolChain() {}
32
33
0
bool TCEToolChain::IsMathErrnoDefault() const { return true; }
34
35
0
bool TCEToolChain::isPICDefault() const { return false; }
36
37
0
bool TCEToolChain::isPIEDefault() const { return false; }
38
39
0
bool TCEToolChain::isPICDefaultForced() const { return false; }
40
41
TCELEToolChain::TCELEToolChain(const Driver &D, const llvm::Triple& Triple,
42
                               const ArgList &Args)
43
0
  : TCEToolChain(D, Triple, Args) {
44
0
}
45
46
0
TCELEToolChain::~TCELEToolChain() {}