[llvm-readobj] Use a helper to extract the Other Flags from symbols
authorPaul Kirth <paulkirth@google.com>
Fri, 17 Mar 2023 23:29:31 +0000 (23:29 +0000)
committerPaul Kirth <paulkirth@google.com>
Fri, 17 Mar 2023 23:30:12 +0000 (23:30 +0000)
commit552b1b3c44d1dd669f7c6b10c1b4c6c39ee55174
treeaaa2dd6185e9e3e67724e30f1a74ac93ac3687e2
parent6f00170159f0427607f8a7847448ee9e36d3fcf7
[llvm-readobj] Use a helper to extract the Other Flags from symbols

Since all ELFDumper implementations will require the same logic when
dealing with Other Flags, we move the logic into a helper so that it can
be easily reused across implementations.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D137092
llvm/tools/llvm-readobj/ELFDumper.cpp