]> granicus.if.org Git - clang/commit
Retry: [Driver] Compute effective target triples once per job (NFCI)
authorVedant Kumar <vsk@apple.com>
Wed, 27 Jul 2016 23:02:20 +0000 (23:02 +0000)
committerVedant Kumar <vsk@apple.com>
Wed, 27 Jul 2016 23:02:20 +0000 (23:02 +0000)
commita43c36ccf1e90e367b4c663cc91f4fe7a21dd883
treec0aa15e7939cbd891ada57a61eb3c3b576f14e50
parent0025c15939c974cb1b46f8c790c2a32007d833a5
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
include/clang/Driver/ToolChain.h
lib/Driver/Driver.cpp
lib/Driver/ToolChain.cpp
lib/Driver/ToolChains.cpp
lib/Driver/ToolChains.h
lib/Driver/Tools.cpp