Add a 'count' field to the DWARF subrange.
authorBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 06:20:49 +0000 (06:20 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 06:20:49 +0000 (06:20 +0000)
commita7645a3c66668da5e2bc772a8e5ab03dc301610c
tree30ef30b7396a9bd8adfcc9c0461959aac9a94302
parent319d594e22c3db55114f233ca398f9760e3f6ed9
Add a 'count' field to the DWARF subrange.

The count field is necessary because there isn't a difference between the 'lo'
and 'hi' attributes for a one-element array and a zero-element array. When the
count is '0', we know that this is a zero-element array. When it's >=1, then
it's a normal constant sized array. When it's -1, then the array is unbounded.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169218 91177308-0d34-0410-b5e6-96231b3b80d8
19 files changed:
include/llvm/DIBuilder.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/VMCore/DIBuilder.cpp
test/CodeGen/ARM/debug-info-branch-folding.ll
test/CodeGen/ARM/debug-info-qreg.ll
test/CodeGen/Thumb/2010-07-15-debugOrdering.ll
test/CodeGen/X86/2009-02-12-DebugInfoVLA.ll
test/CodeGen/X86/2010-07-06-DbgCrash.ll
test/CodeGen/X86/dbg-at-specficiation.ll
test/CodeGen/X86/dbg-declare.ll
test/CodeGen/X86/dbg-subrange.ll
test/DebugInfo/2010-03-30-InvalidDbgInfoCrash.ll
test/DebugInfo/2010-05-03-OriginDIE.ll
test/DebugInfo/X86/empty-and-one-elem-array.ll [new file with mode: 0644]
test/DebugInfo/X86/empty-array.ll [new file with mode: 0644]
test/DebugInfo/array.ll
test/JitListener/test-common-symbols.ll
test/JitListener/test-inline.ll
test/JitListener/test-parameters.ll