//===--- 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 "preprocesser";
  case Precompile: return "precompiler";
  case Compile: return "compiler";
  case Assemble: return "assembler";
  case Link: return "linker";
  }

  assert(0 && "Invalid phase id.");
  return 0;
}

//===--- 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;
}

--- 
+++ 
@@ -15,11 +15,11 @@
 
 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";
+  case Preprocess: return "preprocesser";
+  case Precompile: return "precompiler";
+  case Compile: return "compiler";
+  case Assemble: return "assembler";
+  case Link: return "linker";
   }
 
   assert(0 && "Invalid phase id.");
Driver: Make phase names nouns not verbs.


git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@66883 91177308-0d34-0410-b5e6-96231b3b80d8
