[lld-macho] Cache discovered framework paths
authorKeith Smiley <keithbsmiley@gmail.com>
Wed, 3 Nov 2021 18:08:57 +0000 (11:08 -0700)
committerKeith Smiley <keithbsmiley@gmail.com>
Wed, 3 Nov 2021 18:11:54 +0000 (11:11 -0700)
commit63e65de3ffc20eeadcbffe994cbe0ccd6ea4c4ed
tree01ed6b0b1472149a0a2b2da8c22c53b29978e6ca
parent2e02d2a62f3a86c105ea84323b38941c03ce37da
[lld-macho] Cache discovered framework paths

On our large iOS project this took a link from 1 minute 45 seconds to 45
seconds. For reference ld64 does the same link in ~20 seconds.

Reviewed By: #lld-macho, int3

Differential Revision: https://reviews.llvm.org/D113063
lld/MachO/Driver.cpp