1 //===--- Phases.cpp - Transformations on Driver Types ---------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 #include "clang/Driver/Phases.h"
11 #include "llvm/Support/ErrorHandling.h"
14 using namespace clang::driver;
16 const char *phases::getPhaseName(ID Id) {
18 case Preprocess: return "preprocessor";
19 case Precompile: return "precompiler";
20 case Compile: return "compiler";
21 case Backend: return "backend";
22 case Assemble: return "assembler";
23 case Link: return "linker";
26 llvm_unreachable("Invalid phase id.");