gccrs: Use new name resolver to compile constant items
commitf1b91d0a2bcb74adf7c752592f95f0552afcad77
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Tue, 6 Feb 2024 16:21:45 +0000 (6 17:21 +0100)
committerArthur Cohen <arthur.cohen@embecosm.com>
Thu, 1 Aug 2024 14:52:27 +0000 (1 16:52 +0200)
tree8301ca40ee8b274529533135b41713c45a622367
parent3b47d8a369baa2fa8b2f22f4bedac2ed90363f3b
gccrs: Use new name resolver to compile constant items

Constant items were handled only by the old resolver, this lead to an
ICE when using the new resolver on some rust code containing a constant
item as the new and the old resolver cannot be used at the same time.

gcc/rust/ChangeLog:

* backend/rust-compile-item.cc (CompileItem::visit): Check the resolver
flag and use the new one when required.

Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
gcc/rust/backend/rust-compile-item.cc