aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-base.h
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-06-24 13:50:44 +0000
committerGitHub <noreply@github.com>2021-06-24 13:50:44 +0000
commitc87f2c72dcfa67f1a78fafacaf49043f11c7df6a (patch)
tree02daa3d23d04cb9c950b15d5a7a94f171e1241db /gcc/rust/backend/rust-compile-base.h
parent23e748d7a6855ce132299cfef9692ee9c681de59 (diff)
parent92a434a33904608f5659cf7b5d4df3d2a99bd5bd (diff)
downloadgcc-c87f2c72dcfa67f1a78fafacaf49043f11c7df6a.zip
gcc-c87f2c72dcfa67f1a78fafacaf49043f11c7df6a.tar.gz
gcc-c87f2c72dcfa67f1a78fafacaf49043f11c7df6a.tar.bz2
Merge #523
523: Add support for nested functions r=philberty a=philberty This is a missed pieces of functionality for statements in rust. Co-authored-by: Philip Herron <philip.herron@embecosm.com>
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r--gcc/rust/backend/rust-compile-base.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h
index ed33515..c346af5 100644
--- a/gcc/rust/backend/rust-compile-base.h
+++ b/gcc/rust/backend/rust-compile-base.h
@@ -210,6 +210,9 @@ protected:
void compile_function_body (Bfunction *fndecl,
std::unique_ptr<HIR::BlockExpr> &function_body,
bool has_return_type);
+
+ bool compile_locals_for_block (Resolver::Rib &rib, Bfunction *fndecl,
+ std::vector<Bvariable *> &locals);
};
} // namespace Compile