This is an archive of the discontinued LLVM Phabricator instance.

[TextAPI][elfabi] Make TBE handlers functions that return Errors
ClosedPublic

Authored by amontanez on Dec 7 2018, 12:11 PM.

Details

Summary

Since TBEHandler doesn't maintain state or otherwise have any need to be a class right now, the read and write functions have been moved out and turned into standalone functions. Additionally, the TBE read function has been updated to return an Expected value for better error handling. Tests have been updated to reflect these changes.

Diff Detail

Repository
rL LLVM

Event Timeline

amontanez created this revision.Dec 7 2018, 12:11 PM
jakehehrlich accepted this revision.Dec 7 2018, 12:19 PM

Looks like a simple mechanical transformation. LGTM.

This revision is now accepted and ready to land.Dec 7 2018, 12:19 PM
This revision was automatically updated to reflect the committed changes.