[llvm-commits] [llvm] r169218 - in /llvm/trunk: include/llvm/ lib/CodeGen/AsmPrinter/ lib/VMCore/ test/CodeGen/ARM/ test/CodeGen/Thumb/ test/CodeGen/X86/ test/DebugInfo/ test/DebugInfo/X86/ test/JitListener/

Bill Wendling isanbard at gmail.com
Tue Dec 4 13:31:17 PST 2012


On Dec 4, 2012, at 1:18 PM, "Robinson, Paul" <Paul.Robinson at am.sony.com> wrote:

> So, you're adding a count to the metadata, but not emitting DW_AT_count?
> Am I understanding that correctly?  And a metadata count == -1 means you
> have an unknown upper bound?
> 
Yes.

> DWARF wants you to omit DW_AT_upper_bound when the upper bound is unknown.
> I think this code does not achieve that effect when the Count == -1:
> 
In the case that Count == -1, it won't get to this code because L == 1 and H == 0.

>> -  addUInt(DW_Subrange, dwarf::DW_AT_upper_bound, 0, H);
>> +  if (H > 0 || Count != 0)
>> +    addUInt(DW_Subrange, dwarf::DW_AT_upper_bound, 0, H);


-bw




More information about the llvm-commits mailing list