Use the 'count' attribute to calculate the upper bound of an array.
authorBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 21:34:03 +0000 (21:34 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 21:34:03 +0000 (21:34 +0000)
commit9493dae613847b01b79914502f337814fe3e00ac
treea226d132d41fbb221f379e5d5099b28a3e13af70
parent91b9763d53d12e5bb89a395daec9e12359e7adb4
Use the 'count' attribute to calculate the upper bound of an array.

The count attribute is more accurate with regards to the size of an array. It
also obviates the upper bound attribute in the subrange. We can also better
handle an unbound array by setting the count to -1 instead of the lower bound to
1 and upper bound to 0.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169312 91177308-0d34-0410-b5e6-96231b3b80d8
23 files changed:
include/llvm/DIBuilder.h
include/llvm/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/VMCore/DIBuilder.cpp
lib/VMCore/DebugInfo.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/2012-11-30-misched-dbg.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
test/DebugInfo/X86/empty-array.ll
test/DebugInfo/X86/op_deref.ll
test/DebugInfo/array.ll
test/JitListener/test-common-symbols.ll
test/JitListener/test-inline.ll
test/JitListener/test-parameters.ll