for xcoff :
- implement the getSymbolFlag and getSymbolType() for option --syms.
- llvm-objdump --sym , if the symbol is label, print the containing section for the symbol too.
- when using llvm-objdump --sym --symbol--description, print the symbol index and qualname for symbol.
for example:
--symbol-description
00000000000000c0 l .text (csect: (idx: 2) .foov[PR]) (idx: 3) .foov
and without --symbol-description
00000000000000c0 l .text (csect: .foov) .foov
consumeError is often a code smell. You should either 1) use cantFail instead, 2) add a TODO comment saying to report the message up the stack, 3) report the error somehow, or 4) add a comment explaining why the consumeError is justified here (e.g. "we don't care about invalid files for this purpose"). I suspect at this time 2) is the appropriate response.
Same comment applies for the other consumeError instances.