[llvm-dev] Any reason DISubrange metadata does not allow a variable lowerBound?

Gautam Chakrabarti via llvm-dev llvm-dev at lists.llvm.org
Tue Jan 7 15:14:14 PST 2020


Hi,

The DISubrange metadata node's "lowerBound" needs to be a signed integer, and cannot be a variable. Is there a particular reason the support for it being a variable was not added? DWARF does allow it to be variable.

On the other hand, the "count" field of DISubrange is allowed to be a local or a global variable.

Thanks,
Gautam


-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain
confidential information.  Any unauthorized review, use, disclosure or distribution
is prohibited.  If you are not the intended recipient, please contact the sender by
reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20200107/0ecc5724/attachment.html>


More information about the llvm-dev mailing list