Remove usages of special error reporting functions(error(),
reportError()). This patch is extracted from D87987.
Errors are reported as Expected<>/Error returning values.
This part is for COFF subfolder of llvm-objcopy.
Testing: check-all.
Differential D88213
[llvm-objcopy][NFC] refactor error handling. part 2. avl on Sep 24 2020, 4:02 AM. Authored by
Details Remove usages of special error reporting functions(error(), Testing: check-all.
Diff Detail
Event TimelineComment Actions LGTM overall, one change that seems superfluous though. I'll leave out the formal approval for now, to wait if @jhenderson has more input.
Comment Actions addressed comments(removed variable renaming, removed std::move() usage, used std::remove_if() implementation.
Comment Actions LGTM, but please make sure others are happy too.
|
You don't need this move I believe. Move constructor of Expected<> will be called anyways.