blob: 704540ed3cd623624865b22bbf7afb4606d2cd2f [file] [log] [blame]
Daniel Dunbarb1efcd82009-03-13 11:27:05 +00001//===--- 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
12#include <cassert>
13
14using namespace clang::driver;
15
16const char *phases::getPhaseName(ID Id) {
17 switch (Id) {
18 case Preprocess: return "preprocess";
19 case Precompile: return "precompile";
20 case Compile: return "compile";
21 case Assemble: return "assemble";
22 case Link: return "link";
23 }
24
25 assert(0 && "Invalid phase id.");
26 return 0;
27}