-
Notifications
You must be signed in to change notification settings - Fork 15.1k
[LLD][COFF] Make /wholearchive thin-archive member identifiers consistent #145487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
7c8c158
7df4364
741543e
c244331
ba737e0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -275,7 +275,12 @@ void LinkerDriver::addBuffer(std::unique_ptr<MemoryBuffer> mb, | |
|
|
||
| int memberIndex = 0; | ||
| for (MemoryBufferRef m : getArchiveMembers(ctx, archive)) | ||
| addArchiveBuffer(m, "<whole-archive>", filename, memberIndex++); | ||
| if (!archive->isThin()) | ||
| addArchiveBuffer(m, "<whole-archive>", filename, memberIndex++); | ||
| else | ||
| // Pass empty string as archive name so that the original filename is | ||
| // used as the buffer identifier. | ||
|
||
| addArchiveBuffer(m, "<whole-archive>", "", /*OffsetInArchive=*/0); | ||
| return; | ||
| } | ||
| addFile(make<ArchiveFile>(ctx, mbref)); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add braces to the
forto enclose the code below.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Thanks.