This is an archive of the discontinued LLVM Phabricator instance.

Simplify setting dso_local. NFC.
ClosedPublic

Authored by espindola on Feb 15 2018, 3:31 PM.

Details

Summary

The value of dso_local can be computed from just IR properties and global information (object file type, command line options, etc).

With this patch we no longer pass in the Decl. It was almost unused and making it fully unused guarantees that dso_local is consistent with the rest of the IR.

Diff Detail

Event Timeline

espindola created this revision.Feb 15 2018, 3:31 PM
echristo accepted this revision.Feb 22 2018, 3:17 PM

LGTM. Thanks for the cleanup.

This revision is now accepted and ready to land.Feb 22 2018, 3:17 PM