[llvm-objcopy][NFC] More error cleanup
authorJordan Rupprecht <rupprecht@google.com>
Thu, 21 Feb 2019 17:05:19 +0000 (17:05 +0000)
committerJordan Rupprecht <rupprecht@google.com>
Thu, 21 Feb 2019 17:05:19 +0000 (17:05 +0000)
commitad29d29130a62f71bc0b00e8743f5fb6e1e41258
tree5b4d99389cd313ff69493e4730a4e1aaabb2898b
parent1ed3a0467c93817f669ece91bf008e3997e98230
[llvm-objcopy][NFC] More error cleanup

Summary:
This removes calls to `error()`/`reportError()` in the main driver (llvm-objcopy.cpp) as well as the associated argv-parsing (CopyConfig.cpp). `logAllUnhandledErrors()` is now the main way to print errors.

There are still a few uses from within the per-arch drivers, so we can't delete them yet... but almost!

Reviewers: jhenderson, alexshap, espindola

Reviewed By: jhenderson

Subscribers: emaste, arichardson, jakehehrlich, jdoerfert, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58316

llvm-svn: 354600
12 files changed:
llvm/test/tools/llvm-objcopy/ELF/bad-output-format.test
llvm/test/tools/llvm-objcopy/ELF/binary-input-error.test
llvm/test/tools/llvm-objcopy/ELF/compress-and-decompress-debug-sections-error.test
llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-invalid-format.test
llvm/test/tools/llvm-objcopy/ELF/input-output-target.test
llvm/test/tools/llvm-objcopy/ELF/rename-section-flag.test
llvm/test/tools/llvm-objcopy/ELF/set-section-flags-and-rename.test
llvm/test/tools/llvm-objcopy/ELF/set-section-flags.test
llvm/test/tools/llvm-objcopy/ELF/strip-multiple-files.test
llvm/tools/llvm-objcopy/CopyConfig.cpp
llvm/tools/llvm-objcopy/CopyConfig.h
llvm/tools/llvm-objcopy/llvm-objcopy.cpp