diff options
Diffstat (limited to 'clang/lib/Driver')
| -rw-r--r-- | clang/lib/Driver/Phases.cpp | 27 | 
1 files changed, 27 insertions, 0 deletions
diff --git a/clang/lib/Driver/Phases.cpp b/clang/lib/Driver/Phases.cpp new file mode 100644 index 00000000000..704540ed3cd --- /dev/null +++ b/clang/lib/Driver/Phases.cpp @@ -0,0 +1,27 @@ +//===--- Phases.cpp - Transformations on Driver Types -------------------*-===// +// +//                     The LLVM Compiler Infrastructure +// +// This file is distributed under the University of Illinois Open Source +// License. See LICENSE.TXT for details. +// +//===----------------------------------------------------------------------===// + +#include "clang/Driver/Phases.h" + +#include <cassert> + +using namespace clang::driver; + +const char *phases::getPhaseName(ID Id) { +  switch (Id) { +  case Preprocess: return "preprocess"; +  case Precompile: return "precompile"; +  case Compile: return "compile"; +  case Assemble: return "assemble"; +  case Link: return "link"; +  } + +  assert(0 && "Invalid phase id."); +  return 0; +}  | 

