]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/llvm/tools/clang/lib/Driver/Phases.cpp
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / llvm / tools / clang / lib / Driver / Phases.cpp
1 //===--- Phases.cpp - Transformations on Driver Types ---------------------===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9
10 #include "clang/Driver/Phases.h"
11 #include "llvm/Support/ErrorHandling.h"
12 #include <cassert>
13
14 using namespace clang::driver;
15
16 const char *phases::getPhaseName(ID Id) {
17   switch (Id) {
18   case Preprocess: return "preprocessor";
19   case Precompile: return "precompiler";
20   case Compile: return "compiler";
21   case Assemble: return "assembler";
22   case Link: return "linker";
23   }
24
25   llvm_unreachable("Invalid phase id.");
26 }