[all-commits] [llvm/llvm-project] ababcd: [llvm-objcopy][NFC] refactor error handling. part 2.

avl-llvm via All-commits all-commits at lists.llvm.org
Sun Sep 27 04:22:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ababcd2ab4910a4ea2ba5695c0088a1bdcd974b6
      https://github.com/llvm/llvm-project/commit/ababcd2ab4910a4ea2ba5695c0088a1bdcd974b6
  Author: Alexey Lapshin <a.v.lapshin at mail.ru>
  Date:   2020-09-27 (Sun, 27 Sep 2020)

  Changed paths:
    M llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
    M llvm/tools/llvm-objcopy/COFF/Object.cpp
    M llvm/tools/llvm-objcopy/COFF/Object.h

  Log Message:
  -----------
  [llvm-objcopy][NFC] refactor error handling. part 2.

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 Revision: https://reviews.llvm.org/D88213




More information about the All-commits mailing list