[llvm-readobj] - Remove `reportError(std::error_code EC, StringRef Input)` helper.
commit30ecf372e22cac0cea36fc75764c562b1981813d
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 22 Aug 2019 08:56:24 +0000 (22 08:56 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 22 Aug 2019 08:56:24 +0000 (22 08:56 +0000)
treebed1be670ce698ba473f18384162c38cd7dde453
parentb9f4a20b771f7838d87f37df14be777e91b2d08e
[llvm-readobj] - Remove `reportError(std::error_code EC, StringRef Input)` helper.

We do not need it, std::error_code is used mostly for COFF and
this patch rewrites the calls to use a different overload.

Having reportError(std::error_code EC, ... is excessive by itself,
because API that use error codes actually needs refactoring to
use Error/Expected<> instead.

DIfferential revision: https://reviews.llvm.org/D66521

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369630 91177308-0d34-0410-b5e6-96231b3b80d8
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-readobj/ELFDumper.cpp
tools/llvm-readobj/llvm-readobj.cpp
tools/llvm-readobj/llvm-readobj.h