ccc: Recognize -emit-llvm [-S].
- Unlike llvm-gcc, this doesn't yet treat -emit-llvm output as a
linker input.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63014 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Phases.py b/tools/ccc/ccclib/Phases.py
index 160e72c..a126027 100644
--- a/tools/ccc/ccclib/Phases.py
+++ b/tools/ccc/ccclib/Phases.py
@@ -76,6 +76,10 @@
def __init__(self):
super(SyntaxOnlyPhase, self).__init__("syntax-only", Phase.eOrderCompile)
+class EmitLLVMPhase(Phase):
+ def __init__(self):
+ super(EmitLLVMPhase, self).__init__("emit-llvm", Phase.eOrderCompile)
+
class CompilePhase(Phase):
def __init__(self):
super(CompilePhase, self).__init__("compiler", Phase.eOrderCompile)