diff options
Diffstat (limited to 'gcc/rust/backend/rust-compile-base.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-base.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-base.h b/gcc/rust/backend/rust-compile-base.h index fdc5ad9..ec7c13a 100644 --- a/gcc/rust/backend/rust-compile-base.h +++ b/gcc/rust/backend/rust-compile-base.h @@ -237,9 +237,13 @@ public: protected: HIRCompileBase (Context *ctx) : ctx (ctx) {} + Context *ctx; + Context *get_context () { return ctx; } - Context *ctx; + void compile_function_body (Bfunction *fndecl, + std::unique_ptr<HIR::BlockExpr> &function_body, + bool has_return_type); }; } // namespace Compile |