summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorHongtao Yu <hoy@fb.com>2020-05-11 22:39:59 -0700
committerHongtao Yu <hoy@fb.com>2020-05-15 12:02:08 -0700
commit90af55d8a972b268d1b30feec8fb407ca856e110 (patch)
treef4d5cb98a022096da74b31351eaf08f5b8c50fa3 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parenta1ce88b4e32ed64935a0ce8df25819a51f06b7dd (diff)
[LLD][ELF] Use offset in thin archives to disambiguate thinLTO members
This is fixing a thinLTO module collision issue for thin archives. The problem is that we always use a zero offset to name members in a thin archive and that causes the following build error: ld.lld: error: Expected at most one ThinLTO module per bitcode file which happens to a thin archive that has two members with the same object file name (whose paths will be ignored by thinLTO driver) The fix here is to use real member offset instead as is done for non-thin archives. Differential Revision: https://reviews.llvm.org/D79880
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions