From: Daniel Dunbar Date: Fri, 13 Mar 2009 17:52:07 +0000 (+0000) Subject: ccc/Driver: Normalize phase spelling in -ccc-print-phases. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=209333506a935c582a7d62ad470978baec71afdc;p=clang 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 --- diff --git a/lib/Driver/Action.cpp b/lib/Driver/Action.cpp index 86d676f698..0ffc8f0f64 100644 --- a/lib/Driver/Action.cpp +++ b/lib/Driver/Action.cpp @@ -18,12 +18,12 @@ const char *Action::getClassName(ActionClass AC) { switch (AC) { case InputClass: return "input"; case BindArchClass: return "bind-arch"; - case PreprocessJobClass: return "preprocess"; - case PrecompileJobClass: return "precompile"; - case AnalyzeJobClass: return "analyze"; - case CompileJobClass: return "compile"; - case AssembleJobClass: return "assemble"; - case LinkJobClass: return "link"; + case PreprocessJobClass: return "preprocessor"; + case PrecompileJobClass: return "precompiler"; + case AnalyzeJobClass: return "analyzer"; + case CompileJobClass: return "compiler"; + case AssembleJobClass: return "assembler"; + case LinkJobClass: return "linker"; case LipoJobClass: return "lipo"; } diff --git a/lib/Driver/Phases.cpp b/lib/Driver/Phases.cpp index 71f88eec56..df4cdee775 100644 --- a/lib/Driver/Phases.cpp +++ b/lib/Driver/Phases.cpp @@ -15,7 +15,7 @@ using namespace clang::driver; const char *phases::getPhaseName(ID Id) { switch (Id) { - case Preprocess: return "preprocesser"; + case Preprocess: return "preprocessor"; case Precompile: return "precompiler"; case Compile: return "compiler"; case Assemble: return "assembler"; diff --git a/tools/ccc/ccclib/Phases.py b/tools/ccc/ccclib/Phases.py index a126027ae6..0998fd611b 100644 --- a/tools/ccc/ccclib/Phases.py +++ b/tools/ccc/ccclib/Phases.py @@ -70,7 +70,7 @@ class PrecompilePhase(Phase): class AnalyzePhase(Phase): def __init__(self): - super(AnalyzePhase, self).__init__("analyze", Phase.eOrderCompile) + super(AnalyzePhase, self).__init__("analyzer", Phase.eOrderCompile) class SyntaxOnlyPhase(Phase): def __init__(self):