ccc: Add --analyze driver mode (for running static analyzer).
- For now forces generation of plist files, need to think about the
right interface.
- Changed -fsyntax-only mode to be its own phase (more consistent).
- Add -WA, for passing options verbatim to analyzer.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62649 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Phases.py b/tools/ccc/ccclib/Phases.py
index 0384b8f..160e72c 100644
--- a/tools/ccc/ccclib/Phases.py
+++ b/tools/ccc/ccclib/Phases.py
@@ -68,6 +68,14 @@
def __init__(self):
super(PrecompilePhase, self).__init__("precompiler", Phase.eOrderCompile)
+class AnalyzePhase(Phase):
+ def __init__(self):
+ super(AnalyzePhase, self).__init__("analyze", Phase.eOrderCompile)
+
+class SyntaxOnlyPhase(Phase):
+ def __init__(self):
+ super(SyntaxOnlyPhase, self).__init__("syntax-only", Phase.eOrderCompile)
+
class CompilePhase(Phase):
def __init__(self):
super(CompilePhase, self).__init__("compiler", Phase.eOrderCompile)