Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[llvm-readobj] Provide Hash Histogram for all ELFDumper implementations
Previously, the GNUELFDumper was the only implementer for Hash Histograms. This patch moves the implementation for printHashHistogram and printGnuHashHistogram into the ELFDumper base class, and allows each derived class to specialize how it outputs that information. This change also prevents the JSONELFDumper from emitting invalid JSON, since the shared implementation in LLVMELFDumper no longer emits a warning message to the output stream. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D137096
- Loading branch information
Showing
2 changed files
with
221 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.