This is an archive of the discontinued LLVM Phabricator instance.

[Object/COFF.h] - Stop returning std::error_code in a few methods. NFCI.
ClosedPublic

Authored by grimar on Aug 19 2019, 6:16 AM.

Details

Summary

There are 4 methods that return std::error_code now,
though they do not have to because they are always succeed.
I refactored them.

This allows to simplify the code in tools a bit.

Diff Detail

Event Timeline

grimar created this revision.Aug 19 2019, 6:16 AM
jhenderson accepted this revision.Aug 19 2019, 6:35 AM

LGTM, with one nit.

tools/llvm-objdump/COFFDump.cpp
300

You've lost the comment here. Please reinstate it.

This revision is now accepted and ready to land.Aug 19 2019, 6:35 AM
grimar marked an inline comment as done.Aug 19 2019, 6:36 AM
grimar added inline comments.
tools/llvm-objdump/COFFDump.cpp
300

Oops :\ will do.