This introduces the printRelocationsHelper() which now contains the common
code used by both GNU and LLVM output styles.
Depends on https://reviews.llvm.org/D83871
Paths
| Differential D83935
[llvm-readobj] - Move out the common code from printRelocations() methods. ClosedPublic Authored by grimar on Jul 16 2020, 2:37 AM.
Details Summary This introduces the printRelocationsHelper() which now contains the common Depends on https://reviews.llvm.org/D83871
Diff Detail Event Timelinegrimar added a parent revision: D83871: [llvm-readobj/readelf] - Refactor how the code dumps relocations..Jul 16 2020, 2:37 AM
grimar marked an inline comment as done. Comment Actions
grimar added inline comments.
This revision is now accepted and ready to land.Jul 22 2020, 6:18 AM grimar mentioned this in D84323: [llvm-readelf/readobj] - Detemplate printRelRelaReloc() methods..Jul 22 2020, 6:52 AM grimar added a child revision: D84323: [llvm-readelf/readobj] - Detemplate printRelRelaReloc() methods.. grimar added inline comments. Comment Actions There was no new objections/comments for about 7 days after I got LGTM, so I've committed it as 08a265435bc359841c8618081db6a698cef1f668 (phab does not autocloses any reviews currently it seems).
Revision Contents
Diff 279181 llvm/tools/llvm-readobj/ELFDumper.cpp
|
It seems to me like this pair of functions (and the equivalent LLVM pair) is unnecessary. You should be able to call printRelRelaReloc directly.