Fixed debug_aranges handling for common symbols.
authorRichard Mitton <richard@codersnotes.com>
Mon, 23 Sep 2013 17:56:20 +0000 (17:56 +0000)
committerRichard Mitton <richard@codersnotes.com>
Mon, 23 Sep 2013 17:56:20 +0000 (17:56 +0000)
commiteb46def978a60fd705cca3037feff5573122b404
tree73466a34e49ec135896bbd648f52920e5e436847
parent9528b0e466ace36268abe9d011fffc67d831088c
Fixed debug_aranges handling for common symbols.

The size of common symbols is now tracked correctly, so they can be listed in the arange section without needing knowledge of other following symbols.

.comm (and .lcomm) do not indicate to the system assembler any particular section to use, so we have to treat them as having no section.

Test case update to account for this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191210 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/AsmPrinter.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.h
lib/MC/MCAsmStreamer.cpp
test/DebugInfo/X86/dwarf-aranges.ll