[all-commits] [llvm/llvm-project] 0d656c: [llvm-readobj] - Refine the error reporting in LLV...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Tue Jul 7 04:12:55 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 0d656cb25dc760cdfe0adfdd7256651b7bd0bcab
https://github.com/llvm/llvm-project/commit/0d656cb25dc760cdfe0adfdd7256651b7bd0bcab
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-07-07 (Tue, 07 Jul 2020)
Changed paths:
M llvm/test/tools/llvm-readobj/ELF/linker-options.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[llvm-readobj] - Refine the error reporting in LLVMStyle<ELFT>::printELFLinkerOptions.
It is possible to:
1) Avoid using the `unwrapOrError` calls and hence allow to continue dumping even when
something is not OK with one of SHT_LLVM_LINKER_OPTIONS sections.
2) replace `reportWarning` with `reportUniqueWarning` calls. In this method it is no-op,
because it is not possible to have a duplicated warnings anyways, but since we probably
want to switch to `reportUniqueWarning` globally, this is a good thing to do.
This patch addresses both these points.
Differential revision: https://reviews.llvm.org/D83131
More information about the All-commits
mailing list