HomePhabricator

[llvm-readobj/elf] - Generalize the code for printing dynamic relocations. NFCI.

Authored by grimar on Mon, Sep 7, 5:30 AM.

Description

[llvm-readobj/elf] - Generalize the code for printing dynamic relocations. NFCI.

Currently we have 2 large printDynamicRelocations methods that
have a very similar code for GNU/LLVM styles.

This patch removes the duplication and renames them to printDynamicReloc
for consistency.

Differential revision: https://reviews.llvm.org/D87087