Add a 'count' field to the DWARF subrange.
authorBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 06:21:27 +0000 (06:21 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 06:21:27 +0000 (06:21 +0000)
commit1ca9862cfb16641189ba8aff513193af142cd43c
treee7251ca4903f74397fc35ba83dc68ce2d20d59f9
parentbfc0e5725f94a52e92d8f53ab5285a8a0eb1a314
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.

llvm-svn: 169219
clang/lib/CodeGen/CGDebugInfo.cpp
clang/test/CodeGenCXX/debug-info-flex-member.cpp
clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp [new file with mode: 0644]