DebugInfo: Use a 64 bit type for the subrange
authorDavid Blaikie <dblaikie@gmail.com>
Thu, 3 Apr 2014 06:28:20 +0000 (06:28 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Thu, 3 Apr 2014 06:28:20 +0000 (06:28 +0000)
commit1233d41ff47cc29aaa36e45d2afd6b68899efbef
tree8de04c76c1336a722a3690a82f1876c11ee66482
parent5a64ab6e032f81bb1d3d03cd957a37306b2b4b06
DebugInfo: Use a 64 bit type for the subrange

While we were encoding 64 bit values (data8) in the subrange itself,
using a 32 bit type for the subrange was still confusing the gdb. Oh,
and make it unsigned too.

As the comment points out, this could be pushed into the frontend so
that it would be 32 or 64 bit as appropriate, etc.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@205512 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfUnit.cpp
test/DebugInfo/X86/empty-array.ll
test/DebugInfo/X86/nondefault-subrange-array.ll