This is an archive of the discontinued LLVM Phabricator instance.

[StripDeadDebug/DIFinder] Track inlined SPs
ClosedPublic

Authored by loladiro on Apr 10 2017, 1:05 PM.

Details

Summary

In rL299692 I improved strip-dead-debug-info's ability to drop CUs that are not
referenced from the current module. However, in doing so I neglected to realize
that some SPs could be referenced entirely from inlined functions. It appears
I was not the only one to make this mistake, because DebugInfoFinder, doesn't
find those SPs either. Fix this in DebugInfoFinder and then use that to make
sure not to drop those CUs in strip-dead-debug-info.

Diff Detail

Repository
rL LLVM

Event Timeline

loladiro created this revision.Apr 10 2017, 1:05 PM
loladiro updated this revision to Diff 94729.Apr 10 2017, 1:18 PM

Updated to include the test for DIFinder

aprantl accepted this revision.Apr 10 2017, 2:30 PM
This revision is now accepted and ready to land.Apr 10 2017, 2:30 PM
This revision was automatically updated to reflect the committed changes.