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)
commit222c2fd60d0cbe676f3f316a4d62a75762a83c40
tree6a3e8c3a365b25e76ebb25b85feb6d43f91f2e74
parentda92646875b73c3822e47ce867f197efd2eacbc2
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169484 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/DebugInfo.h
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
test/DebugInfo/X86/nondefault-subrange-array.ll [new file with mode: 0644]