Retry: [Driver] Compute effective target triples once per job (NFCI)
Compute an effective triple once per job. Cache the triple in the prevailing ToolChain for the duration of the job. Clients which need effective triples now look them up in the ToolChain. This eliminates wasteful re-computation of effective triples (e.g in getARMFloatABI()). While we're at it, delete MachO::ComputeEffectiveClangTriple. It was a no-op override. Differential Revision: https://reviews.llvm.org/D22596 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@276937 91177308-0d34-0410-b5e6-96231b3b80d8
Showing
- include/clang/Driver/ToolChain.h 28 additions, 0 deletionsinclude/clang/Driver/ToolChain.h
- lib/Driver/Driver.cpp 13 additions, 0 deletionslib/Driver/Driver.cpp
- lib/Driver/ToolChain.cpp 2 additions, 1 deletionlib/Driver/ToolChain.cpp
- lib/Driver/ToolChains.cpp 0 additions, 7 deletionslib/Driver/ToolChains.cpp
- lib/Driver/ToolChains.h 0 additions, 3 deletionslib/Driver/ToolChains.h
- lib/Driver/Tools.cpp 9 additions, 15 deletionslib/Driver/Tools.cpp
Loading
Please register or sign in to comment