diff options
author | David Faust <david.faust@oracle.com> | 2021-11-15 11:24:40 -0800 |
---|---|---|
committer | David Faust <david.faust@oracle.com> | 2021-11-16 13:10:41 -0800 |
commit | 553e88f1dd4b4794334ee6d1861c185b92361a0b (patch) | |
tree | 62075b93b07f3dce20b0c0afa1bc8024bb1cac89 /gcc/rust/backend/rust-compile-block.h | |
parent | b52a68d2d8676ea378f0fbb6726639cc80402542 (diff) | |
download | gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.zip gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.tar.gz gcc-553e88f1dd4b4794334ee6d1861c185b92361a0b.tar.bz2 |
Replace Bstatement with GCC tree
Diffstat (limited to 'gcc/rust/backend/rust-compile-block.h')
-rw-r--r-- | gcc/rust/backend/rust-compile-block.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/rust/backend/rust-compile-block.h b/gcc/rust/backend/rust-compile-block.h index 6876e8a..0e631e1 100644 --- a/gcc/rust/backend/rust-compile-block.h +++ b/gcc/rust/backend/rust-compile-block.h @@ -53,8 +53,7 @@ class CompileConditionalBlocks : public HIRCompileBase using Rust::Compile::HIRCompileBase::visit; public: - static Bstatement *compile (HIR::IfExpr *expr, Context *ctx, - Bvariable *result) + static tree compile (HIR::IfExpr *expr, Context *ctx, Bvariable *result) { CompileConditionalBlocks resolver (ctx, result); expr->accept_vis (resolver); @@ -72,7 +71,7 @@ private: : HIRCompileBase (ctx), translated (nullptr), result (result) {} - Bstatement *translated; + tree translated; Bvariable *result; }; @@ -81,8 +80,8 @@ class CompileExprWithBlock : public HIRCompileBase using Rust::Compile::HIRCompileBase::visit; public: - static Bstatement *compile (HIR::ExprWithBlock *expr, Context *ctx, - Bvariable *result) + static tree compile (HIR::ExprWithBlock *expr, Context *ctx, + Bvariable *result) { CompileExprWithBlock resolver (ctx, result); expr->accept_vis (resolver); @@ -109,7 +108,7 @@ private: : HIRCompileBase (ctx), translated (nullptr), result (result) {} - Bstatement *translated; + tree translated; Bvariable *result; }; |