clang API Documentation
00001 //===--- Phases.cpp - Transformations on Driver Types ---------------------===// 00002 // 00003 // The LLVM Compiler Infrastructure 00004 // 00005 // This file is distributed under the University of Illinois Open Source 00006 // License. See LICENSE.TXT for details. 00007 // 00008 //===----------------------------------------------------------------------===// 00009 00010 #include "clang/Driver/Phases.h" 00011 #include "llvm/Support/ErrorHandling.h" 00012 00013 #include <cassert> 00014 00015 using namespace clang::driver; 00016 00017 const char *phases::getPhaseName(ID Id) { 00018 switch (Id) { 00019 case Preprocess: return "preprocessor"; 00020 case Precompile: return "precompiler"; 00021 case Compile: return "compiler"; 00022 case Assemble: return "assembler"; 00023 case Link: return "linker"; 00024 } 00025 00026 llvm_unreachable("Invalid phase id."); 00027 }