ccc/Driver: Normalize phase spelling in -ccc-print-phases.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66912 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Daniel Dunbar 2009-03-13 17:52:07 +00:00
Родитель 3dbd6c51bc
Коммит 209333506a
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -18,12 +18,12 @@ const char *Action::getClassName(ActionClass AC) {
switch (AC) { switch (AC) {
case InputClass: return "input"; case InputClass: return "input";
case BindArchClass: return "bind-arch"; case BindArchClass: return "bind-arch";
case PreprocessJobClass: return "preprocess"; case PreprocessJobClass: return "preprocessor";
case PrecompileJobClass: return "precompile"; case PrecompileJobClass: return "precompiler";
case AnalyzeJobClass: return "analyze"; case AnalyzeJobClass: return "analyzer";
case CompileJobClass: return "compile"; case CompileJobClass: return "compiler";
case AssembleJobClass: return "assemble"; case AssembleJobClass: return "assembler";
case LinkJobClass: return "link"; case LinkJobClass: return "linker";
case LipoJobClass: return "lipo"; case LipoJobClass: return "lipo";
} }

Просмотреть файл

@ -15,7 +15,7 @@ using namespace clang::driver;
const char *phases::getPhaseName(ID Id) { const char *phases::getPhaseName(ID Id) {
switch (Id) { switch (Id) {
case Preprocess: return "preprocesser"; case Preprocess: return "preprocessor";
case Precompile: return "precompiler"; case Precompile: return "precompiler";
case Compile: return "compiler"; case Compile: return "compiler";
case Assemble: return "assembler"; case Assemble: return "assembler";

Просмотреть файл

@ -70,7 +70,7 @@ class PrecompilePhase(Phase):
class AnalyzePhase(Phase): class AnalyzePhase(Phase):
def __init__(self): def __init__(self):
super(AnalyzePhase, self).__init__("analyze", Phase.eOrderCompile) super(AnalyzePhase, self).__init__("analyzer", Phase.eOrderCompile)
class SyntaxOnlyPhase(Phase): class SyntaxOnlyPhase(Phase):
def __init__(self): def __init__(self):