1//===--- Phases.h - Transformations on Driver Types -------------*- C++ -*-===// 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#ifndef CLANG_DRIVER_PHASES_H_ 11#define CLANG_DRIVER_PHASES_H_ 12 13namespace clang { 14namespace driver { 15namespace phases { 16 /// ID - Ordered values for successive stages in the 17 /// compilation process which interact with user options. 18 enum ID { 19 Preprocess, 20 Precompile, 21 Compile, 22 Assemble, 23 Link 24 }; 25 26 enum { 27 MaxNumberOfPhases = Link + 1 28 }; 29 30 const char *getPhaseName(ID Id); 31 32} // end namespace phases 33} // end namespace driver 34} // end namespace clang 35 36#endif 37