gcc/rust/ChangeLog:
* rust-backend.h
(Backend::debug): Make non-virtual.
(Backend::get_identifier_node): Likewise.
(Gcc_backend::debug): Remove.
(Gcc_backend::get_identifier_node): Remove.
* rust-gcc.cc
(Gcc_backend::debug): Rename to ...
(Backend::debug): ... here.
(Gcc_backend::get_identifier_node): Rename to ...
(Backend::get_identifier_node): ... here.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
};
// debug
- virtual void debug (tree) = 0;
- virtual void debug (Bvariable *) = 0;
+ void debug (tree);
+ void debug (Bvariable *);
- virtual tree get_identifier_node (const std::string &str) = 0;
+ tree get_identifier_node (const std::string &str);
// Types.
public:
Gcc_backend ();
- void debug (tree t);
- void debug (Bvariable *t);
-
- tree get_identifier_node (const std::string &str);
-
// Expressions.
tree zero_expression (tree);
}
void
-Gcc_backend::debug (tree t)
+Backend::debug (tree t)
{
debug_tree (t);
};
void
-Gcc_backend::debug (Bvariable *t)
+Backend::debug (Bvariable *t)
{
debug_tree (t->get_decl ());
};
tree
-Gcc_backend::get_identifier_node (const std::string &str)
+Backend::get_identifier_node (const std::string &str)
{
return get_identifier_with_length (str.data (), str.length ());
}