ccc: (Darwin) Start implementing argument translation for
Darwin/Compile tool.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62085 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/Driver.py b/tools/ccc/ccclib/Driver.py
index 23bc10c..bea7232 100644
--- a/tools/ccc/ccclib/Driver.py
+++ b/tools/ccc/ccclib/Driver.py
@@ -535,6 +535,7 @@
hasSaveTemps = (args.getLastArg(self.parser.saveTempsOption) or
args.getLastArg(self.parser.saveTempsOption2))
hasNoIntegratedCPP = args.getLastArg(self.parser.noIntegratedCPPOption)
+ hasTraditionalCPP = args.getLastArg(self.parser.traditionalCPPOption)
hasPipe = args.getLastArg(self.parser.pipeOption)
# FIXME: forward will die, this isn't really how things are
@@ -566,8 +567,12 @@
# about these being unused are likely to be noise anyway.
if hasSaveTemps:
self.claim(hasSaveTemps)
- if hasNoIntegratedCPP:
+
+ if hasTraditionalCPP:
+ self.claim(hasTraditionalCPP)
+ elif hasNoIntegratedCPP:
self.claim(hasNoIntegratedCPP)
+
class InputInfo:
def __init__(self, source, type, baseInput):
@@ -615,6 +620,7 @@
useIntegratedCPP = False
inputList = phase.inputs
if (not hasNoIntegratedCPP and
+ not hasTraditionalCPP and
not hasSaveTemps and
tool.hasIntegratedCPP()):
if (len(phase.inputs) == 1 and