This is an archive of the discontinued LLVM Phabricator instance.

Attribute nonlazybind should not affect calls to functions with hidden visibility
ClosedPublic

Authored by tmsriram on Nov 3 2017, 4:37 PM.

Details

Summary

Attribute nonlazybind should not affect calls to functions with hidden visibility.

https://reviews.llvm.org/D39065 skips the PLT for calls to external functions marked with "nonlazybind" attribute. However, this should not affect functions with hidden visibility or local linkage. This patch fixes that.

Diff Detail

Event Timeline

tmsriram created this revision.Nov 3 2017, 4:37 PM
tmsriram updated this revision to Diff 121762.Nov 6 2017, 12:07 PM

Change shouldAssumeDSOLocal to be aware of nonlazybind attribute.

tmsriram updated this revision to Diff 121930.Nov 7 2017, 10:26 AM

Fix comment as suggested.

This revision was automatically updated to reflect the committed changes.