[PATCH] D11983: Make getToolChain actually cache its result, as documented in Driver.h

Douglas Katzman via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 12 10:58:16 PDT 2015


dougk created this revision.
dougk added a reviewer: chandlerc.
dougk added a subscriber: cfe-commits.

http://reviews.llvm.org/D11983

Files:
  lib/Driver/Driver.cpp

Index: lib/Driver/Driver.cpp
===================================================================
--- lib/Driver/Driver.cpp
+++ lib/Driver/Driver.cpp
@@ -2248,6 +2248,7 @@
         TC = new toolchains::Generic_GCC(*this, Target, Args);
       break;
     }
+    ToolChains[Target.str()] = TC;
   }
   return *TC;
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11983.31960.patch
Type: text/x-patch
Size: 315 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150812/9a9e629e/attachment.bin>


More information about the cfe-commits mailing list