 |
|
 |
|
| Files: |
1 |
|
Branches Taken: |
16.7% |
1 / 6 |
| Generated: |
2010-02-10 01:31 |
|
Branches Executed: |
33.3% |
2 / 6 |
| |
|
Line Coverage: |
100.0% |
11 / 11 |
| |
 |
|
 |
1 : //===--- ToolChain.cpp - Collections of tools for one platform ----------*-===//
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 : #include "clang/Driver/ToolChain.h"
11 :
12 : #include "clang/Driver/Action.h"
13 : #include "clang/Driver/Driver.h"
14 : #include "clang/Driver/HostInfo.h"
15 :
16 : using namespace clang::driver;
17 :
18 250: ToolChain::ToolChain(const HostInfo &_Host, const llvm::Triple &_Triple)
19 250: : Host(_Host), Triple(_Triple) {
20 250: }
21 :
22 250: ToolChain::~ToolChain() {
0: branch 3 not taken
0: branch 4 not taken
0: branch 9 not taken
0: branch 10 not taken
0: branch 15 not taken
250: branch 16 taken
23 250: }
24 :
25 1092: const Driver &ToolChain::getDriver() const {
26 1092: return Host.getDriver();
27 : }
28 :
29 : std::string ToolChain::GetFilePath(const Compilation &C,
30 13: const char *Name) const {
31 13: return Host.getDriver().GetFilePath(Name, *this);
32 :
33 : }
34 :
35 : std::string ToolChain::GetProgramPath(const Compilation &C,
36 : const char *Name,
37 237: bool WantFile) const {
38 237: return Host.getDriver().GetProgramPath(Name, *this, WantFile);
39 : }
Generated: 2010-02-10 01:31 by zcov