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

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 19 06:21:05 PDT 2019


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: seiya, rupprecht, jakehehrlich, javed.absar.
Herald added a reviewer: alexshap.
Herald added a reviewer: rupprecht.

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.


https://reviews.llvm.org/D66417

Files:
  include/llvm/Object/COFF.h
  lib/Object/COFFObjectFile.cpp
  tools/llvm-objcopy/COFF/Reader.cpp
  tools/llvm-objdump/COFFDump.cpp
  tools/llvm-readobj/ARMWinEHPrinter.cpp
  tools/llvm-readobj/COFFDumper.cpp
  tools/obj2yaml/coff2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66417.215870.patch
Type: text/x-patch
Size: 7378 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190819/22606497/attachment.bin>


More information about the llvm-commits mailing list