ccc: Give all tools access to the toolchain they are in.
 - No functionality change.


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@65100 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/tools/ccc/ccclib/ToolChain.py b/tools/ccc/ccclib/ToolChain.py
index f2f22a0..62a380b 100644
--- a/tools/ccc/ccclib/ToolChain.py
+++ b/tools/ccc/ccclib/ToolChain.py
@@ -99,7 +99,7 @@
             Phases.PrecompilePhase : cc,
             Phases.AssemblePhase : Tools.Darwin_AssembleTool(self),
             Phases.LinkPhase : Tools.Darwin_X86_LinkTool(self),
-            Phases.LipoPhase : Tools.LipoTool(),
+            Phases.LipoPhase : Tools.LipoTool(self),
             }
 
         if archName == 'x86_64':
@@ -237,17 +237,17 @@
 
     def __init__(self, driver):
         super(Generic_GCC_ToolChain, self).__init__(driver)
-        cc = Tools.GCC_CompileTool()
+        cc = Tools.GCC_CompileTool(self)
         self.clangTool = Tools.Clang_CompileTool(self)
         self.toolMap = {
-            Phases.PreprocessPhase : Tools.GCC_PreprocessTool(),
+            Phases.PreprocessPhase : Tools.GCC_PreprocessTool(self),
             Phases.AnalyzePhase : self.clangTool,
             Phases.SyntaxOnlyPhase : cc,
             Phases.EmitLLVMPhase : cc,
             Phases.CompilePhase : cc,
-            Phases.PrecompilePhase : Tools.GCC_PrecompileTool(),
-            Phases.AssemblePhase : Tools.GCC_AssembleTool(),
-            Phases.LinkPhase : Tools.GCC_LinkTool(),
+            Phases.PrecompilePhase : Tools.GCC_PrecompileTool(self),
+            Phases.AssemblePhase : Tools.GCC_AssembleTool(self),
+            Phases.LinkPhase : Tools.GCC_LinkTool(self),
             }
 
     def selectTool(self, action):