This is an archive of the discontinued LLVM Phabricator instance.

[JITLink] Allow moving a Symbol to a Block in a different Section
ClosedPublic

Authored by benlangmuir on Sep 13 2021, 2:32 PM.

Details

Summary

When moving a Symbol between Blocks that are in different Sections, update the symbol tables for each Section. Otherwise symbol.getBlock().getSection() will not match the contents of Section::symbols(), which asserts during linking.

Diff Detail

Event Timeline

benlangmuir requested review of this revision.Sep 13 2021, 2:32 PM
benlangmuir created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptSep 13 2021, 2:32 PM
lhames accepted this revision.Sep 13 2021, 5:40 PM

LGTM. Thanks very much Ben!

This revision is now accepted and ready to land.Sep 13 2021, 5:40 PM