ccc: Generalize Darwin/Link tool based on Darwin version.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@62078 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/ToolChain.py b/tools/ccc/ccclib/ToolChain.py
index e80bb08..db8dd0e 100644
--- a/tools/ccc/ccclib/ToolChain.py
+++ b/tools/ccc/ccclib/ToolChain.py
@@ -14,15 +14,16 @@
some particular action."""
abstract
-class Darwin10_X86_ToolChain(ToolChain):
- def __init__(self, driver):
- super(Darwin10_X86_ToolChain, self).__init__(driver)
+class Darwin_X86_ToolChain(ToolChain):
+ def __init__(self, driver, darwinVersion, gccVersion):
+ super(Darwin_X86_ToolChain, self).__init__(driver)
self.toolMap = {
Phases.PreprocessPhase : Tools.GCC_PreprocessTool(),
Phases.CompilePhase : Tools.GCC_CompileTool(),
Phases.PrecompilePhase : Tools.GCC_PrecompileTool(),
Phases.AssemblePhase : Tools.DarwinAssembleTool(),
- Phases.LinkPhase : Tools.Darwin10_X86_LinkTool(),
+ Phases.LinkPhase : Tools.Darwin_X86_LinkTool(darwinVersion,
+ gccVersion),
Phases.LipoPhase : Tools.LipoTool(),
}