]> granicus.if.org Git - clang/commit
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)
commit003ec237adbabe93d5f87d8c23b4d148b4767617
tree7cf73896ded2295e6b631c93d908ed0e6f294e79
parent5c5eaa83b3c1a6f393105a1f394e7ea422bfc839
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/cfe/trunk@169219 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGDebugInfo.cpp
test/CodeGenCXX/debug-info-flex-member.cpp
test/CodeGenCXX/debug-info-zero-length-arrays.cpp [new file with mode: 0644]