[PATCH] D86536: [obj2yaml] - Cleanup error reporting (remove Error.cpp/.h files)

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 25 06:13:27 PDT 2020


grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added a subscriber: mgorny.
Herald added a project: LLVM.
grimar requested review of this revision.

This removes Error.cpp/.h files from obj2yaml.
These files are not needed because we are
using `Error`s instead of error codes widely and do
not need a logic related to obj2yaml specific
error codes anymore.

I had to adjust just a few lines of tool's code
to remove remaining dependencies.


https://reviews.llvm.org/D86536

Files:
  llvm/tools/obj2yaml/CMakeLists.txt
  llvm/tools/obj2yaml/Error.cpp
  llvm/tools/obj2yaml/Error.h
  llvm/tools/obj2yaml/dwarf2yaml.cpp
  llvm/tools/obj2yaml/elf2yaml.cpp
  llvm/tools/obj2yaml/macho2yaml.cpp
  llvm/tools/obj2yaml/minidump2yaml.cpp
  llvm/tools/obj2yaml/obj2yaml.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D86536.287649.patch
Type: text/x-patch
Size: 8458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200825/5e2474b5/attachment.bin>


More information about the llvm-commits mailing list