Key features of this patch is separation of file-format specific tweaks to the section name are pushed in to an appropriate class. The MachO specific decorating of section name with the segment name is in MachOObjectFile rather than llvm-objdump.
Another feature is being able to get a section name in cases where a section iterator can't be retrieved e.g. processor specific sections in ELF files.
I'm planning to commit this in two patches. One creating the method and moving the MachO functionality which is an NFC change. A followup patch is the change to ELFObjectFile including a test showing an processor specific section name being printed out.
Functions should be a verb and start with a lowercase letter. How about getNameFromPRCNumber?
What is PRC?