[Dwarf-discuss] DW_AT_discr_value improvement

Tom Tromey tom@tromey.com
Tue Jan 21 00:31:23 GMT 2025


>>>>> "John" == John DelSignore <JDelSignore@perforce.com> writes:

John> Is the discriminant value always a constant? Perhaps DWARF should say,
John> "The value of this attribute is of class constant." Table 2.3 defines
John> attribute class constant as, "One, two, four, eight or sixteen bytes
John> of uninterpreted data, or data encoded in the variable length format
John> known as LEB128 (see Section 7.6 on page 221).".

Yeah, makes sense to me.
What I meant by:

>>   Additionally there doesn't seem to be any
>> reason to limit the forms that may be used here.

... is that any constant form seems fine.

Tom


More information about the Dwarf-discuss mailing list