summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/tools/clang/lib/Driver/WindowsToolChain.cpp
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2012-10-03 04:46:58 +0000
committerache <ache@FreeBSD.org>2012-10-03 04:46:58 +0000
commitcbaa91b07562a45d7a37b3fbaba57b77cbe94468 (patch)
tree95069d0b688fbfba33a5138446e584e2e06eb02a /contrib/llvm/tools/clang/lib/Driver/WindowsToolChain.cpp
parentd142b7417c2aa871313728dddcbf50ce59f963b0 (diff)
downloadFreeBSD-src-cbaa91b07562a45d7a37b3fbaba57b77cbe94468.zip
FreeBSD-src-cbaa91b07562a45d7a37b3fbaba57b77cbe94468.tar.gz
Optimize prev. commit for speed.
1) Don't iterate the loop from the environment array beginning each time, iterate it under the last place we deactivate instead. 2) Call __rebuild_environ() not on each iteration but once, only at the end of whole loop (of course, only in case if something is changed). MFC after: 1 week
Diffstat (limited to 'contrib/llvm/tools/clang/lib/Driver/WindowsToolChain.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud