[PATCH] D67563: Debug Info: Add support for named constants

Paul Robinson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 19 09:38:39 PDT 2019


probinson added a comment.

In D67563#1675264 <https://reviews.llvm.org/D67563#1675264>, @dblaikie wrote:

> I wonder, then, about a "constexpr T&" - maybe that's closer to a "true constant" - you can't take its address? (references have no address, as far as the language is concerned - maybe not-even-constexpr T& is a "true constant" (but only allows "address constants" not other things like integers to have similar handling)).


I admire your gaming my off-the-cuff example.  But no sensible producer would try to coerce that into a DW_TAG_constant.

In D67563#1675356 <https://reviews.llvm.org/D67563#1675356>, @aprantl wrote:

> How do Fortran compilers represent regular versus inout arguments in DWARF?


Can't help you there; last time I used Fortran, there was only one kind of argument.  (Which can be entertaining when you pass "2" to a formal parameter that then gets modified by the callee.  Redefining the value of "2" made for a very weird debugging experience.)


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D67563/new/

https://reviews.llvm.org/D67563





More information about the llvm-commits mailing list