[llvm-objcopy] - Remove dead code. NFCI.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 6 Mar 2019 14:12:18 +0000 (14:12 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 6 Mar 2019 14:12:18 +0000 (14:12 +0000)
commit281a5beefa81d1e5390516e831c6a08d69749791
treec0691c6462bceb1f97d1e0a83cca2e1c2aebabd9
parent89eb7bb3f6662c35361b0d07f2fa24c3f55c7140
[llvm-objcopy] - Remove dead code. NFCI.

DecompressedSection can only be created if --decompress-debug-sections is specified.
https://github.com/llvm-mirror/llvm/blob/master/tools/llvm-objcopy/ELF/ELFObjcopy.cpp#L492

If it is specified when !zlib::isAvailable(), we error out early when parsing the options:
https://github.com/llvm-mirror/llvm/blob/master/tools/llvm-objcopy/CopyConfig.cpp#L657

What means the code I am removing in this patch is dead.

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

llvm-svn: 355505
llvm/tools/llvm-objcopy/ELF/Object.cpp