[PATCH] D87987: [llvm-objcopy][NFC] allow to redefine error handling.
Alexey Lapshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 20 04:55:18 PDT 2020
avl created this revision.
avl added reviewers: jhenderson, abrachet, grimar, alexshap.
Herald added subscribers: llvm-commits, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: rupprecht.
Herald added a project: LLVM.
avl requested review of this revision.
Herald added a subscriber: MaskRay.
This patch is a pre-requisite for moving implementation of llvm-objcopy into
separate library(http://lists.llvm.org/pipermail/llvm-dev/2020-September/145075.html).
It allows to redefine error handling. I.e. it makes possible to change the way
how errors are displayed by library user. It creates a class ErrorReporter
(llvm-objcopy/Error.h) which could report recoverable error, unrecoverable error,
warning. If necessary all handlers could be redefined.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87987
Files:
llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
llvm/tools/llvm-objcopy/CopyConfig.cpp
llvm/tools/llvm-objcopy/CopyConfig.h
llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp
llvm/tools/llvm-objcopy/ELF/Object.cpp
llvm/tools/llvm-objcopy/ELF/Object.h
llvm/tools/llvm-objcopy/Error.h
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
llvm/tools/llvm-objcopy/MachO/MachOReader.h
llvm/tools/llvm-objcopy/llvm-objcopy.cpp
llvm/tools/llvm-objcopy/llvm-objcopy.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87987.293016.patch
Type: text/x-patch
Size: 64410 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200920/0a699b6d/attachment.bin>
More information about the llvm-commits
mailing list