Previously, llvm-nm would report symbols for .debug and .note sections as: '?' with an empty section name:
00000000 ? 00000000 ? ...
With this patch the output more closely resembles GNU nm:
00000000 N .debug_abbrev 00000000 n .note.GNU-stack ...
This patch calls getSectionName for sections that belong to symbols of type ELF::STT_SECTION, which returns the name of the section from the section string table.
I'm not sure what the type of Sec here is, so this probably shouldn't be auto (but feel free to point to a similar call in this area that uses auto, and I'll back down).