aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
diff options
context:
space:
mode:
authorNico Weber <thakis@chromium.org>2021-05-31 22:12:35 -0400
committerNico Weber <thakis@chromium.org>2021-06-01 16:06:30 -0400
commit2c1903412b0a73ed65e9feb272af9c07f32970d0 (patch)
tree7ebc2aa8706f46a51f11df6c52b656ff6db9b880 /llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
parent936ca1e21a91843c76b20c6c857aaddd5fa3d42a (diff)
downloadllvm-2c1903412b0a73ed65e9feb272af9c07f32970d0.zip
llvm-2c1903412b0a73ed65e9feb272af9c07f32970d0.tar.gz
llvm-2c1903412b0a73ed65e9feb272af9c07f32970d0.tar.bz2
[lld/mac] Implement removal of unused dylibs
This omits load commands for unreferenced dylibs if: - the dylib was loaded implicitly, - it is marked MH_DEAD_STRIPPABLE_DYLIB - or -dead_strip_dylibs is passed This matches ld64. Currently, the "is dylib referenced" state is computed before dead code stripping and is not updated after dead code stripping. This too matches ld64. We should do better here. With this, clang-format linked with lld (like with ld64) no longer has libobjc.A.dylib in `otool -L` output. (It was implicitly loaded as a reexport of CoreFoundation.framework, but it's not needed.) Differential Revision: https://reviews.llvm.org/D103430
Diffstat (limited to 'llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp')
0 files changed, 0 insertions, 0 deletions