diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-08-31 15:58:22 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-09-04 16:55:06 +0000 |
commit | 997fc94e109d2c2ca9731c12001f29cded32846b (patch) | |
tree | 9cfdd89971a783194f565ad32b435359b3e17e2a /gcc/rust/rust-gcc.cc | |
parent | 52144478c6d276eac2dc36a5a2b2148221cf0171 (diff) | |
download | gcc-997fc94e109d2c2ca9731c12001f29cded32846b.zip gcc-997fc94e109d2c2ca9731c12001f29cded32846b.tar.gz gcc-997fc94e109d2c2ca9731c12001f29cded32846b.tar.bz2 |
Move block-related methods into base class Backend
gcc/rust/ChangeLog:
* rust-backend.h
(Backend::block): Make non-virtual.
(Backend::block_add_statements): Likewise.
(Gcc_backend::block): Remove.
(Gcc_backend::block_add_statements): Remove.
* rust-gcc.cc
(Gcc_backend::block): Rename to ...
(Backend::block): ... here.
(Gcc_backend::block_add_statements): Rename to ...
(Backend::block_add_statements): ... here.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
Diffstat (limited to 'gcc/rust/rust-gcc.cc')
-rw-r--r-- | gcc/rust/rust-gcc.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index df0b8e2..f0a7766 100644 --- a/gcc/rust/rust-gcc.cc +++ b/gcc/rust/rust-gcc.cc @@ -1867,9 +1867,9 @@ Backend::statement_list (const std::vector<tree> &statements) // the Bblock. tree -Gcc_backend::block (tree fndecl, tree enclosing, - const std::vector<Bvariable *> &vars, - location_t start_location, location_t) +Backend::block (tree fndecl, tree enclosing, + const std::vector<Bvariable *> &vars, location_t start_location, + location_t) { tree block_tree = make_node (BLOCK); if (enclosing == NULL) @@ -1928,8 +1928,8 @@ Gcc_backend::block (tree fndecl, tree enclosing, // Add statements to a block. void -Gcc_backend::block_add_statements (tree bind_tree, - const std::vector<tree> &statements) +Backend::block_add_statements (tree bind_tree, + const std::vector<tree> &statements) { tree stmt_list = NULL_TREE; for (std::vector<tree>::const_iterator p = statements.begin (); |