This is an archive of the discontinued LLVM Phabricator instance.

[DWARF] Add API to get data from MCDwarfLineStr
ClosedPublic

Authored by ayermolo on Apr 19 2022, 4:25 PM.

Details

Summary

This API will be used in D121876, to get finalized string data for
.debug_line_str.

Diff Detail

Event Timeline

ayermolo created this revision.Apr 19 2022, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 4:25 PM
ayermolo requested review of this revision.Apr 19 2022, 4:25 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 19 2022, 4:25 PM

@dblaikie Do you think this is in your wheelhouse to review, or should I find someone else?
thanks

dblaikie accepted this revision.Apr 20 2022, 11:09 PM

Generally we'd rather not commit untested functionality - /probably/ this should be either unit tested in this commit, or rolled into whatever commit calls/exercises the functionality. But if you reckon this is really the better separation, I won't insist on that, but give it some thought.

This revision is now accepted and ready to land.Apr 20 2022, 11:09 PM

Generally we'd rather not commit untested functionality - /probably/ this should be either unit tested in this commit, or rolled into whatever commit calls/exercises the functionality. But if you reckon this is really the better separation, I won't insist on that, but give it some thought.

Thanks. I'll add a unit test. Probably more inline with what I have seen from other diffs of breaking them up if possible. The other commit is already pretty big.

ayermolo updated this revision to Diff 424281.Apr 21 2022, 1:37 PM

modified one of the tests to test new API.

ayermolo updated this revision to Diff 424283.Apr 21 2022, 1:53 PM

removing include that snuck in

rafauler accepted this revision.Apr 21 2022, 2:04 PM
rafauler added a subscriber: rafauler.

LGTM

This revision was landed with ongoing or failed builds.Apr 21 2022, 2:08 PM
This revision was automatically updated to reflect the committed changes.