/Users/buildslave/jenkins/workspace/coverage/llvm-project/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 | 57 | const char *phases::getPhaseName(ID Id) { |
16 | 57 | switch (Id) { |
17 | 0 | case Preprocess: return "preprocessor"; |
18 | 0 | case Precompile: return "precompiler"; |
19 | 0 | case Compile: return "compiler"; |
20 | 0 | case Backend: return "backend"; |
21 | 0 | case Assemble: return "assembler"; |
22 | 57 | case Link: return "linker"; |
23 | 0 | case IfsMerge: return "ifsmerger"; |
24 | 57 | } |
25 | | |
26 | 0 | llvm_unreachable("Invalid phase id."); |
27 | 0 | } |