[PATCH] Only warn about DWARF2 supporting one section per compilation unit for code sections

Dimitry Andric dimitry at andric.com
Sun Nov 23 07:10:00 PST 2014


Hi olista01, dblaikie,

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.

http://reviews.llvm.org/D6379

Files:
  lib/MC/MCParser/ELFAsmParser.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6379.16539.patch
Type: text/x-patch
Size: 626 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141123/02eca514/attachment.bin>


More information about the llvm-commits mailing list