ccc: Bug fix and gcc compatibility tweak.

 - --gstabs only goes to Darwin/Assembler when dealing with an
     assembly file from the command line.

 - Relative placement of -o option for cc1 moves depending on
   -fsyntax-only/-S, how quaint.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62152 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index 46b4541..75f48da 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -573,7 +573,7 @@
         elif hasNoIntegratedCPP:
             self.claim(hasNoIntegratedCPP)
         
-
+        # FIXME: Move to... somewhere else.
         class InputInfo:
             def __init__(self, source, type, baseInput):
                 self.source = source
@@ -583,6 +583,9 @@
             def __repr__(self):
                 return '%s(%r, %r, %r)' % (self.__class__.__name__,
                                            self.source, self.type, self.baseInput)
+            
+            def isOriginalInput(self):
+                return self.source is self.baseInput
 
         def createJobs(tc, phase, forwardArgs,
                        canAcceptPipe=False, atTopLevel=False, arch=None):