]> granicus.if.org Git - llvm/commit
[llvm-readobj] - Remove unwrapOrError(ErrorOr<T> EO) helper.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 08:29:26 +0000 (08:29 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 08:29:26 +0000 (08:29 +0000)
commitb1763b5a211690328b4475ef2f235564e1f6a5f3
treefe49109689cc32d67f63d6a5738358398c355f80
parent3c03681847372776392d1b4cac9de02a50cb4143
[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