This is an archive of the discontinued LLVM Phabricator instance.

Fix isDiscardableIfUnused to include available_externally linkage.
ClosedPublic

Authored by eugenis on Sep 2 2015, 3:23 PM.

Details

Reviewers
rnk
rsmith
Summary

AvailableExternally functions are discardable.

Diff Detail

Repository
rL LLVM

Event Timeline

eugenis updated this revision to Diff 33866.Sep 2 2015, 3:23 PM
eugenis retitled this revision from to Fix isDiscardableIfUnused to include available_externally linkage. .
eugenis updated this object.
eugenis added a reviewer: rsmith.
eugenis set the repository for this revision to rL LLVM.
eugenis added a subscriber: llvm-commits.

I'm not sure how to test this. It does not break any existing tests, and the tests in the upcoming D12087 depend on this.

rsmith added a reviewer: rnk.Sep 4 2015, 5:06 PM
rsmith edited edge metadata.

LGTM, but I'd like someone with more familiarity with this to double-check there's no subtlety we're missing here.

rnk accepted this revision.Sep 4 2015, 7:37 PM
rnk edited edge metadata.

lgtm

This revision is now accepted and ready to land.Sep 4 2015, 7:37 PM
eugenis closed this revision.Sep 8 2015, 11:27 AM

Thanks, committed as r247044.