This is an archive of the discontinued LLVM Phabricator instance.

[dsymutil] Add flag to force a static variable to keep its enclosing function
ClosedPublic

Authored by JDevlieghere on Apr 26 2021, 6:22 PM.

Details

Summary

Add a flag to change dsymutil's behavior and force a static variable to
keep its enclosing function. The test shows a situation where that could
be useful. I'm not convinced this behavior makes sense as a default,
which is why it's behind a flag.

rdar://74918374

Diff Detail

Event Timeline

JDevlieghere created this revision.Apr 26 2021, 6:22 PM
JDevlieghere requested review of this revision.Apr 26 2021, 6:22 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 26 2021, 6:22 PM
friss accepted this revision.Apr 28 2021, 11:03 AM

LGTM

This revision is now accepted and ready to land.Apr 28 2021, 11:03 AM
This revision was landed with ongoing or failed builds.Apr 28 2021, 11:33 AM
This revision was automatically updated to reflect the committed changes.

Have you got any size data on it? Might be nice to avoid the fragmentation/extra flag if the cost isn't especially high.