r211273 introduced a new error "DWARF2 only supports one section per compilation unit" when multiple sections are encountered in asm, and when compiling for DWARF2.
However, apparently this limitation only applies for code sections, e.g. those with Type == ELF::SHT_PROGBITS. Therefore, only emit the warning for those types of sections.