Do not emit DW_AT_upper_bound and DW_AT_lower_bound for unbouded array.
authorDevang Patel <dpatel@apple.com>
Fri, 8 Apr 2011 21:55:10 +0000 (21:55 +0000)
committerDevang Patel <dpatel@apple.com>
Fri, 8 Apr 2011 21:55:10 +0000 (21:55 +0000)
commitfb6e8d65547b744b1804b74b263f163e9879b901
treee287d18b31798e37822aed3ca4891c8d89357926
parent90464131a353812f461cb3aac4a7adce2eb7579b
Do not emit DW_AT_upper_bound and DW_AT_lower_bound for unbouded array.
If lower bound is more then upper bound then consider it is an unbounded array.
An array is unbounded if non-zero lower bound is same as upper bound.
If lower bound and upper bound are zero than array has one element.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129156 91177308-0d34-0410-b5e6-96231b3b80d8
docs/SourceLevelDebugging.html
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
test/DebugInfo/array.ll [new file with mode: 0644]