Home | History | Annotate | Download | only in Driver
      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 
     13 #include <cassert>
     14 
     15 using namespace clang::driver;
     16 
     17 const char *phases::getPhaseName(ID Id) {
     18   switch (Id) {
     19   case Preprocess: return "preprocessor";
     20   case Precompile: return "precompiler";
     21   case Compile: return "compiler";
     22   case Assemble: return "assembler";
     23   case Link: return "linker";
     24   }
     25 
     26   llvm_unreachable("Invalid phase id.");
     27 }
     28