gcc/rust/ChangeLog:
* rust-backend.h
(Backend::Backend): New.
(Backend::~Backend): Remove.
(class Gcc_backend): Remove.
* rust-gcc.cc
(Gcc_backend::Gcc_backend): Rename to ...
(Backend::Backend): ... here.
(rust_get_backend): Construct Backend instead of Gcc_backend.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
class Backend
{
public:
- virtual ~Backend () {}
+ Backend ();
// Name/type/location. Used for function parameters, struct fields,
// interface methods.
tree convert_tree (tree, tree, location_t);
};
-class Gcc_backend : public Backend
-{
-public:
- Gcc_backend ();
-};
-
#endif // RUST_BACKEND_H
// Define the built-in functions that are exposed to GCCRust.
-Gcc_backend::Gcc_backend ()
+Backend::Backend ()
{
/* We need to define the fetch_and_add functions, since we use them
for ++ and --. */
Backend *
rust_get_backend ()
{
- return new Gcc_backend ();
+ return new Backend ();
}