This is an archive of the discontinued LLVM Phabricator instance.

[IRObjectFile] Handle undefined weak symbols in RecordStreamer
ClosedPublic

Authored by davide on Sep 14 2016, 5:02 PM.

Details

Summary

Before all the weak symbols were incorrectly reported as defined weak.
This patch extends the RecordStreamer state to include UndefinedWeak.
While I was here, I added a test to ensure we still handle defined weak correctly.
This is an attempt to fix PR30390.

Diff Detail

Event Timeline

davide updated this revision to Diff 71463.Sep 14 2016, 5:02 PM
davide retitled this revision from to [IRObjectFile] Handle undefined weak symbols in RecordStreamer.
davide updated this object.
davide added a reviewer: rafael.
davide added subscribers: llvm-commits, tejohnson.
rafael accepted this revision.Sep 15 2016, 4:16 AM
rafael edited edge metadata.

LGTM. Thanks!

This revision is now accepted and ready to land.Sep 15 2016, 4:16 AM
This revision was automatically updated to reflect the committed changes.