[Driver] Compute effective target triples once per job (NFCI)
authorVedant Kumar <vsk@apple.com>
Mon, 18 Jul 2016 19:56:38 +0000 (19:56 +0000)
committerVedant Kumar <vsk@apple.com>
Mon, 18 Jul 2016 19:56:38 +0000 (19:56 +0000)
commitbf51e703cfaf006f3f162d837435de4815e9007e
tree7a91e21395551a31c536117b0b5ce989d0437722
parentf2030b931caca4c89e680f125a0d8aa2e6593551
[Driver] Compute effective target triples once per job (NFCI)

Compute an effective target triple exactly once in ConstructJob(), and
then simply pass around references to it. This eliminates wasteful
re-computation of effective triples (e.g in getARMFloatABI()).

Differential Revision: https://reviews.llvm.org/D22290

llvm-svn: 275895
clang/docs/ReleaseNotes.rst
clang/include/clang/Driver/SanitizerArgs.h
clang/include/clang/Driver/Tool.h
clang/include/clang/Driver/ToolChain.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/SanitizerArgs.cpp
clang/lib/Driver/ToolChain.cpp
clang/lib/Driver/ToolChains.cpp
clang/lib/Driver/ToolChains.h
clang/lib/Driver/Tools.cpp
clang/lib/Driver/Tools.h