aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/parse/rust-parse.h
diff options
context:
space:
mode:
authorPhilip Herron <herron.philip@googlemail.com>2023-10-02 18:41:33 +0100
committerPhilip Herron <philip.herron@embecosm.com>2023-11-30 10:14:28 +0000
commit0ddb160c352ba2eacc375b94133813bb25704174 (patch)
tree020f8d4f32011803ccfcf5d0238bc3a15558a8b4 /gcc/rust/parse/rust-parse.h
parent16d0a2d058bbfb994ffa84e5257990b1c5809abb (diff)
downloadgcc-0ddb160c352ba2eacc375b94133813bb25704174.zip
gcc-0ddb160c352ba2eacc375b94133813bb25704174.tar.gz
gcc-0ddb160c352ba2eacc375b94133813bb25704174.tar.bz2
gccrs: Remove backend dependancy on resolution rib information
When making more desugaring for the HIR we can need to add new Let bindings which will require namesolution information but also rib information for which block the let binding is associated which was very unnessecary. This patch simply updates the BLOCK_CONTEXT of the current scope as we are compiling and encounter HIR::LetStmts instead of trying to do it all upfront which lots of wierd checks gcc/rust/ChangeLog: * backend/rust-compile-base.cc (HIRCompileBase::compile_locals_for_block): removed * backend/rust-compile-base.h: update header * backend/rust-compile-block.cc (CompileBlock::visit): remove old logic * backend/rust-compile-expr.cc (CompileExpr::generate_closure_function): likewise * backend/rust-compile-stmt.cc (CompileStmt::visit): likewise * backend/rust-compile-var-decl.h: ensure we setup tuple bindings correctly Signed-off-by: Philip Herron <herron.philip@googlemail.com>
Diffstat (limited to 'gcc/rust/parse/rust-parse.h')
0 files changed, 0 insertions, 0 deletions