aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend
diff options
context:
space:
mode:
authorOwen Avery <powerboat9.gamer@gmail.com>2023-08-02 15:52:54 -0400
committerPhilip Herron <philip.herron@embecosm.com>2023-08-09 09:23:16 +0000
commit09e23335a289de79b8e202b0afdf32caee53dcdb (patch)
treeb09df6cb97a6fcb55c1742021302df10cea6a888 /gcc/rust/backend
parenta4b7e7375facb701585b2989ef3490528ec5bc9f (diff)
downloadgcc-09e23335a289de79b8e202b0afdf32caee53dcdb.zip
gcc-09e23335a289de79b8e202b0afdf32caee53dcdb.tar.gz
gcc-09e23335a289de79b8e202b0afdf32caee53dcdb.tar.bz2
Remove Backend::bool_type and Backend::char_type
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>
Diffstat (limited to 'gcc/rust/backend')
-rw-r--r--gcc/rust/backend/rust-compile-type.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/rust/backend/rust-compile-type.cc b/gcc/rust/backend/rust-compile-type.cc
index d78a2d7..4e7b624 100644
--- a/gcc/rust/backend/rust-compile-type.cc
+++ b/gcc/rust/backend/rust-compile-type.cc
@@ -440,10 +440,8 @@ TyTyResolveCompile::visit (const TyTy::SliceType &type)
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