diff options
| author | Jez Ng <jezng@fb.com> | 2021-08-26 11:49:47 -0400 |
|---|---|---|
| committer | Jez Ng <jezng@fb.com> | 2021-08-26 18:52:07 -0400 |
| commit | 9065fe55911923c158e0d0e739081996d4ff86f2 (patch) | |
| tree | b8e42931116723b316f8f7496f90b7fe3b19c709 /libcxx/include/__algorithm/comp.h | |
| parent | 2179930868f6166deccbf21f2f7565ec7666ff70 (diff) | |
| download | llvm-9065fe55911923c158e0d0e739081996d4ff86f2.zip llvm-9065fe55911923c158e0d0e739081996d4ff86f2.tar.gz llvm-9065fe55911923c158e0d0e739081996d4ff86f2.tar.bz2 | |
[lld-macho] Refactor archive loading
The previous logic was duplicated between symbol-initiated
archive loads versus flag-initiated loads (i.e. `-force_load` and
`-ObjC`). This resulted in code duplication as well as redundant work --
we would create Archive instances twice whenever we had one of those
flags; once in `getArchiveMembers` and again when we constructed the
ArchiveFile.
This was motivated by an upcoming diff where we load archive members
containing ObjC-related symbols before loading those containing
ObjC-related sections, as well as before performing symbol resolution.
Without this refactor, it would be difficult to do that while avoiding
loading the same archive member twice.
Differential Revision: https://reviews.llvm.org/D108780
Diffstat (limited to 'libcxx/include/__algorithm/comp.h')
0 files changed, 0 insertions, 0 deletions
