It removes templating for Elf_Rel[a] handling that we
introduced earlier and introduces a helper class instead.
It was briefly discussed in D87087, which showed,
why having templates is probably not ideal for the generalization
of dumpers code.
Paths
| Differential D87141
[llvm-readobj/elf] - Introduce Relocation<ELFT> helper. ClosedPublic Authored by grimar on Sep 4 2020, 6:22 AM.
Details Summary It removes templating for Elf_Rel[a] handling that we It was briefly discussed in D87087, which showed,
Diff Detail Event Timeline
grimar marked an inline comment as done. Comment Actions
Comment Actions LGTM, thanks for the work.
This revision is now accepted and ready to land.Sep 7 2020, 4:49 AM Closed by commit rG3a86eb03d54e: [llvm-readobj/elf] - Introduce Relocation<ELFT> helper. (authored by grimar). · Explain WhySep 7 2020, 5:08 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 289934 llvm/tools/llvm-readobj/ELFDumper.cpp
|
Registering that I am not particularly keen on casting from Rela -> Rel like this (a person in the future could decide to change the Rel constructor to do something with the assumption that it really is always an Elf_Rel here). I don't have any great alternative currently though, without duplicating logic, so am not asking this to change.