gcc/rust/ChangeLog:
* backend/rust-compile-type.cc
(TyTyResolveCompile::visit): Inline Backend::bool_type call.
* rust-backend.h
(Backend::bool_type): Remove.
(Backend::char_type): Remove.
(Gcc_backend::bool_type): Remove.
(Gcc_backend::char_type): Remove.
* rust-gcc.cc
(Gcc_backend::char_constant_expression): Inline Backend::char_type call.
Signed-off-by: Owen Avery <powerboat9.gamer@gmail.com>
void
TyTyResolveCompile::visit (const TyTy::BoolType &)
{
- translated
- = ctx->get_backend ()->named_type ("bool",
- ctx->get_backend ()->bool_type (),
- BUILTINS_LOCATION);
+ translated = ctx->get_backend ()->named_type ("bool", boolean_type_node,
+ BUILTINS_LOCATION);
}
void
// Types.
- // Get the unnamed boolean type.
- virtual tree bool_type () = 0;
-
- // Get the char type
- virtual tree char_type () = 0;
-
// Get the wchar type
virtual tree wchar_type () = 0;
// Types.
- tree bool_type () { return boolean_type_node; }
-
- tree char_type () { return char_type_node; }
-
tree wchar_type ();
int get_pointer_size ();
tree
Gcc_backend::char_constant_expression (char c)
{
- return build_int_cst (this->char_type (), c);
+ return build_int_cst (char_type_node, c);
}
// Make a constant boolean expression.