[llvm-commits] [llvm] r129156 - in /llvm/trunk: docs/SourceLevelDebugging.html lib/CodeGen/AsmPrinter/DwarfDebug.cpp test/DebugInfo/array.ll

Duncan Sands baldrick at free.fr
Fri Apr 8 15:21:03 PDT 2011


> 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.

For that matter, wouldn't lower bound more than upper bound indicate an empty
array, not an unbounded one (there is no problem declaring such arrays in Ada)?

Ciao, Duncan.



More information about the llvm-commits mailing list