This is an archive of the discontinued LLVM Phabricator instance.

obj2yaml: Improve error reporting
ClosedPublic

Authored by sbc100 on Jun 7 2017, 12:37 PM.

Details

Summary

Previously only the error codes were reported which
meant that useful information about malformed imputs
was not shown.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Jun 7 2017, 12:37 PM
sbc100 updated this revision to Diff 101820.Jun 7 2017, 3:00 PM
  • update tests
davide edited edge metadata.Jun 10 2017, 8:59 PM

This looks fine. Are there other places in obj2yaml that could take advantage of the new Error scheme? If so, I'd convert them all together.

Yes, I think there is lager change to made here. For example ELFObjectFile from libObject still doesn't report Error's. However I think this change stands alone as a useful fix and we can follewup with others.

davide accepted this revision.Jun 16 2017, 3:43 PM
This revision is now accepted and ready to land.Jun 16 2017, 3:43 PM
This revision was automatically updated to reflect the committed changes.