]> git.ipfire.org Git - thirdparty/gcc.git/commit
Map locations to placeholder regions
authorKushal Pal <kushalpal109@gmail.com>
Thu, 25 Jul 2024 11:57:35 +0000 (11:57 +0000)
committerP-E-P <32375388+P-E-P@users.noreply.github.com>
Fri, 16 Aug 2024 12:31:02 +0000 (12:31 +0000)
commitddda47c4fe5a9f5ed7e16820f6f45079af5bfa3b
tree344ed6b79f0d04332e4ae68e26efb2b633e63ce5
parent44664e3875976d8770c830eb468ac6524a2a8aa8
Map locations to placeholder regions

Mapped placeholder regions to their respective HIR nodes so we can fetch
locations during error reporting.

gcc/rust/ChangeLog:

* checks/errors/borrowck/rust-bir-builder.h: Map regions to
their respective HIR nodes.
* checks/errors/borrowck/rust-bir.h (struct Function):
Add unordered_map to maintain the mapping.

Signed-off-by: Kushal Pal <kushalpal109@gmail.com>
gcc/rust/checks/errors/borrowck/rust-bir-builder.h
gcc/rust/checks/errors/borrowck/rust-bir.h