summaryrefslogtreecommitdiffstats
path: root/clang/tools/ccc/ccclib/Phases.py
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-01-26 17:09:15 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-01-26 17:09:15 +0000
commitf3a06113c75348d884500b83a538e7dd82476051 (patch)
tree68bf220b535e1cb4012c5c2addad1446b6dbb7c0 /clang/tools/ccc/ccclib/Phases.py
parent179dd918b93b13c2eb7e9df1f05d4281c7b4250f (diff)
downloadbcm5719-llvm-f3a06113c75348d884500b83a538e7dd82476051.tar.gz
bcm5719-llvm-f3a06113c75348d884500b83a538e7dd82476051.zip
ccc: Recognize -emit-llvm [-S].
- Unlike llvm-gcc, this doesn't yet treat -emit-llvm output as a linker input. llvm-svn: 63014
Diffstat (limited to 'clang/tools/ccc/ccclib/Phases.py')
-rw-r--r--clang/tools/ccc/ccclib/Phases.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/tools/ccc/ccclib/Phases.py b/clang/tools/ccc/ccclib/Phases.py
index 160e72c06eb..a126027ae6b 100644
--- a/clang/tools/ccc/ccclib/Phases.py
+++ b/clang/tools/ccc/ccclib/Phases.py
@@ -76,6 +76,10 @@ class SyntaxOnlyPhase(Phase):
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)
OpenPOWER on IntegriCloud