Path: blob/main/contrib/llvm-project/clang/lib/Driver/Phases.cpp
35233 views
//===--- Phases.cpp - Transformations on Driver Types ---------------------===//1//2// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.3// See https://llvm.org/LICENSE.txt for license information.4// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception5//6//===----------------------------------------------------------------------===//78#include "clang/Driver/Phases.h"9#include "llvm/Support/ErrorHandling.h"10#include <cassert>1112using namespace clang::driver;1314const char *phases::getPhaseName(ID Id) {15switch (Id) {16case Preprocess: return "preprocessor";17case Precompile: return "precompiler";18case Compile: return "compiler";19case Backend: return "backend";20case Assemble: return "assembler";21case Link: return "linker";22case IfsMerge: return "ifsmerger";23}2425llvm_unreachable("Invalid phase id.");26}272829