clang API Documentation

Phases.h
Go to the documentation of this file.
00001 //===--- Phases.h - Transformations on Driver Types -------------*- C++ -*-===//
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 #ifndef LLVM_CLANG_DRIVER_PHASES_H
00011 #define LLVM_CLANG_DRIVER_PHASES_H
00012 
00013 namespace clang {
00014 namespace driver {
00015 namespace phases {
00016   /// ID - Ordered values for successive stages in the
00017   /// compilation process which interact with user options.
00018   enum ID {
00019     Preprocess,
00020     Precompile,
00021     Compile,
00022     Assemble,
00023     Link
00024   };
00025 
00026   enum {
00027     MaxNumberOfPhases = Link + 1
00028   };
00029 
00030   const char *getPhaseName(ID Id);
00031 
00032 } // end namespace phases
00033 } // end namespace driver
00034 } // end namespace clang
00035 
00036 #endif