Add LLVM runtime checks to build path
[clang/acc.git] / lib / Driver / Phases.cpp
blobdf4cdee77500cd2349ed917fdeaab6054094229b
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 //===----------------------------------------------------------------------===//
10 #include "clang/Driver/Phases.h"
12 #include <cassert>
14 using namespace clang::driver;
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";
25 assert(0 && "Invalid phase id.");
26 return 0;