Handle non-default array bounds.
authorBill Wendling <isanbard@gmail.com>
Thu, 6 Dec 2012 07:38:10 +0000 (07:38 +0000)
committerBill Wendling <isanbard@gmail.com>
Thu, 6 Dec 2012 07:38:10 +0000 (07:38 +0000)
commit28fe9e7a3675795aff7fb0f22b95ffe0c682b5de
treef67a4a0dacad3358b9efba3ee312aee3735ac9c9
parent216bcd522bd7aed9241c5828996b86b50fdb91e7
Handle non-default array bounds.

Some languages, e.g. Ada and Pascal, allow you to specify that the array bounds
are different from the default (1 in these cases). If we have a lower bound
that's non-default, then we emit the lower bound. We also calculate the correct
upper bound in those cases.

llvm-svn: 169484
llvm/include/llvm/DebugInfo.h
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
llvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
llvm/test/DebugInfo/X86/nondefault-subrange-array.ll [new file with mode: 0644]