diff options
author | Owen Avery <powerboat9.gamer@gmail.com> | 2023-08-02 15:52:54 -0400 |
---|---|---|
committer | Philip Herron <philip.herron@embecosm.com> | 2023-08-09 09:23:16 +0000 |
commit | 09e23335a289de79b8e202b0afdf32caee53dcdb (patch) | |
tree | b09df6cb97a6fcb55c1742021302df10cea6a888 /gcc/rust/rust-gcc.cc | |
parent | a4b7e7375facb701585b2989ef3490528ec5bc9f (diff) | |
download | gcc-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/rust-gcc.cc')
-rw-r--r-- | gcc/rust/rust-gcc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/rust-gcc.cc b/gcc/rust/rust-gcc.cc index 2cca37b..42fbe8e 100644 --- a/gcc/rust/rust-gcc.cc +++ b/gcc/rust/rust-gcc.cc @@ -873,7 +873,7 @@ Gcc_backend::wchar_constant_expression (wchar_t c) 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. |