This is an archive of the discontinued LLVM Phabricator instance.

[LinkerWrapper] Fix use of string savers and correctly pass bitcode libraries
ClosedPublic

Authored by jhuber6 on Jul 8 2022, 10:36 AM.

Details

Summary

This patch removes some uses of string savers that are no-longer needed.
We also create a new string saver when linking bitcode files. It seems
that occasionally the symbol string references can go out of scope when
they are added to the LTO input so we need to save these names that are
used for symbol resolution. Additionally, a previous patch added new
logic for handling bitcode libraries, but failed to actually add them to
the input. This bug has been fixed.

Fixes #56445

Diff Detail

Event Timeline

jhuber6 created this revision.Jul 8 2022, 10:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 10:36 AM
jhuber6 requested review of this revision.Jul 8 2022, 10:36 AM
Herald added a project: Restricted Project. · View Herald TranscriptJul 8 2022, 10:36 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
ye-luo accepted this revision.Jul 8 2022, 1:29 PM

Confirm that #56445 is fixed now

This revision is now accepted and ready to land.Jul 8 2022, 1:29 PM