[llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO).
commit5b7825d5b5aa2482f7cbe1c931489ee36878b2f0
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 10:53:12 +0000 (9 10:53 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 9 Aug 2019 10:53:12 +0000 (9 10:53 +0000)
treec039fbcde77e19f766375b83fa5d864662878e73
parente55e52486deac4a8739430f2e4adf5c55cc0a260
[llvm-readobj] - Remove deprecated unwrapOrError(Expected<T> EO).

This patch changes the code to use a modern unwrapOrError(StringRef Input, Expected<T> EO)
version that contains the input source name and removes the deprecated version.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@368428 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
test/Object/invalid.test
test/tools/llvm-readobj/elf-packed-relocs-error1.s
test/tools/llvm-readobj/elf-packed-relocs-error2.s
test/tools/llvm-readobj/elf-packed-relocs-error3.s
test/tools/llvm-readobj/elf-packed-relocs-error4.s
test/tools/llvm-readobj/elf-packed-relocs-error5.s
test/tools/yaml2obj/elf-sht-symtab-shndx.yaml
tools/llvm-readobj/ARMEHABIPrinter.h
tools/llvm-readobj/COFFDumper.cpp
tools/llvm-readobj/ELFDumper.cpp
tools/llvm-readobj/MachODumper.cpp
tools/llvm-readobj/ObjDumper.cpp
tools/llvm-readobj/llvm-readobj.h