clang 20.0.0git
Phases.cpp
Go to the documentation of this file.
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
10#include "llvm/Support/ErrorHandling.h"
11#include <cassert>
12
13using namespace clang::driver;
14
16 switch (Id) {
17 case Preprocess: return "preprocessor";
18 case Precompile: return "precompiler";
19 case Compile: return "compiler";
20 case Backend: return "backend";
21 case Assemble: return "assembler";
22 case Link: return "linker";
23 case IfsMerge: return "ifsmerger";
24 }
25
26 llvm_unreachable("Invalid phase id.");
27}
uint32_t Id
Definition: SemaARM.cpp:1144
const char * getPhaseName(ID Id)
Definition: Phases.cpp:15
ID
ID - Ordered values for successive stages in the compilation process which interact with user options...
Definition: Phases.h:17