Coverage Report

Created: 2019-07-24 05:18

/Users/buildslave/jenkins/workspace/clang-stage2-coverage-R/llvm/tools/clang/lib/Driver/Phases.cpp
Line
Count
Source (jump to first uncovered line)
1
//===--- Phases.cpp - Transformations on Driver Types ---------------------===//
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 "clang/Driver/Phases.h"
10
#include "llvm/Support/ErrorHandling.h"
11
#include <cassert>
12
13
using namespace clang::driver;
14
15
33
const char *phases::getPhaseName(ID Id) {
16
33
  switch (Id) {
17
33
  
case Preprocess: return "preprocessor"0
;
18
33
  
case Precompile: return "precompiler"0
;
19
33
  
case Compile: return "compiler"0
;
20
33
  
case Backend: return "backend"0
;
21
33
  
case Assemble: return "assembler"0
;
22
33
  case Link: return "linker";
23
0
  }
24
0
25
0
  llvm_unreachable("Invalid phase id.");
26
0
}