[llvm-readobj] - Remove unwrapOrError(ErrorOr<T> EO) helper.
commita1924211ba730ee9bb96620f1fdef50f9a18ddab
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 08:29:26 +0000 (9 08:29 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 08:29:26 +0000 (9 08:29 +0000)
treefe49109689cc32d67f63d6a5738358398c355f80
parent5682db72a1cc3a5d3c4aaf611b7057feefceb5d1
[llvm-readobj] - Remove unwrapOrError(ErrorOr<T> EO) helper.

It is outdated. Using of Expected<> is preferred, also it does
not provide a way to report a file name.

I updated the code to use the modern version of unwrapOrError instead.

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

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