This is an archive of the discontinued LLVM Phabricator instance.

[Support] Add more context to DataExtractor getLEB128 errors
ClosedPublic

Authored by jhenderson on May 29 2020, 7:00 AM.

Details

Summary

This patch adds the current offset to the error messages reported by getLEB128, so that clients don't have to add it themselves and can just report the error when they receive it.

Diff Detail

Event Timeline

jhenderson created this revision.May 29 2020, 7:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 29 2020, 7:00 AM
dblaikie accepted this revision.May 29 2020, 9:11 AM

Sounds good to me

This revision is now accepted and ready to land.May 29 2020, 9:11 AM
clayborg accepted this revision.May 29 2020, 12:38 PM

That will be a nice addition to the error text.

labath accepted this revision.Jun 1 2020, 12:59 AM
This revision was automatically updated to reflect the committed changes.