]> git.ipfire.org Git - thirdparty/gcc.git/commit
ada: Add Visitor generic to Repinfo
authorTom Tromey <tromey@adacore.com>
Tue, 23 Sep 2025 15:36:47 +0000 (09:36 -0600)
committerMarc Poulhiès <dkm@gcc.gnu.org>
Thu, 27 Nov 2025 12:57:44 +0000 (13:57 +0100)
commit8039d2fea973a8882b6554768dc24c901bcfa41f
treebbd2901d4d471cb339fc1b3b493cf908db04360c
parent52d71516634642bf99108fe7cfbfcbc46639518e
ada: Add Visitor generic to Repinfo

For a gnat-llvm debuginfo patch, it was convenient to be able to
inspect the expressions created during back-annotation.  This patch
adds a new generic Visit procedure that can be implemented to allow
such inspection.  List_GCC_Expression is reimplemented in terms of
this procedure as a proof of concept.

gcc/ada/ChangeLog:

* repinfo.adb (Visit): New procedure.
(List_GCC_Expression): Rewrite.
* repinfo.ads (Visit): New generic procedure.
gcc/ada/repinfo.adb
gcc/ada/repinfo.ads