This is an archive of the discontinued LLVM Phabricator instance.

[ThinLTO] Rename COMDATs for COFF when promoting/renaming COMDAT leader
ClosedPublic

Authored by tejohnson on Jan 29 2019, 9:43 AM.

Details

Summary

COFF requires that COMDAT name match that of the leader. When we promote
and rename an internal leader in ThinLTO due to an import, ensure we
subsequently rename the associated COMDAT. Similar to D31963 which did
this during ThinLTO module splitting.

Fixes PR40414.

Diff Detail

Repository
rL LLVM

Event Timeline

tejohnson created this revision.Jan 29 2019, 9:43 AM
inglorion accepted this revision.Jan 30 2019, 5:04 PM

lgtm, thanks!

This revision is now accepted and ready to land.Jan 30 2019, 5:04 PM
This revision was automatically updated to reflect the committed changes.