]> granicus.if.org Git - llvm/commit
[llvm-readobj] - Remove `reportError(std::error_code EC, StringRef Input)` helper.
authorGeorge Rimar <grimar@accesssoftek.com>
Thu, 22 Aug 2019 08:56:24 +0000 (08:56 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Thu, 22 Aug 2019 08:56:24 +0000 (08:56 +0000)
commit3251d121bd2006acaeae7d85e951b0ba0aeccf86
treebed1be670ce698ba473f18384162c38cd7dde453
parent3d187fdcb77ee4b345871a01fdb59cfb7419d76c
[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