[llvm-readobj] - Remove `error(llvm::Expected<T> &&E)`
commitdc179caae913486c2e0ba9bc669148fe51c05ab0
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 11:03:21 +0000 (9 11:03 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 11:03:21 +0000 (9 11:03 +0000)
tree5b0d12b985b90f65520c29986f5e7f3da5c5f5a7
parent5b7825d5b5aa2482f7cbe1c931489ee36878b2f0
[llvm-readobj] - Remove `error(llvm::Expected<T> &&E)`

This is a bit strange method. It works like a unwrapOrError,
but named error. It does not report an Input name.
I removed it.

Differential revision: https://reviews.llvm.org/D66000

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