ccc: Add dummy Clang/Compile tool and use on Darwin/X86 for C files.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62204 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Tools.py b/tools/ccc/ccclib/Tools.py
index bc10081..f47d3aa 100644
--- a/tools/ccc/ccclib/Tools.py
+++ b/tools/ccc/ccclib/Tools.py
@@ -172,6 +172,19 @@
                                                       output, outputType, arglist,
                                                       [])
 
+class Clang_CompileTool(GCC_Common_Tool):
+    def __init__(self):
+        super(Clang_CompileTool, self).__init__('clang',
+                                              (Tool.eFlagsPipedInput |
+                                               Tool.eFlagsPipedOutput |
+                                               Tool.eFlagsIntegratedCPP))
+
+    def constructJob(self, phase, arch, jobs, inputs, 
+                     output, outputType, arglist):
+        return super(Clang_CompileTool, self).constructJob(phase, arch, jobs, inputs,
+                                                           output, outputType, arglist,
+                                                           ['-S'])
+
 class Darwin_X86_CompileTool(Tool):
     def __init__(self, toolChain):
         super(Darwin_X86_CompileTool, self).__init__('cc1',