aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/hir/tree
diff options
context:
space:
mode:
authorRaiki Tamura <tamaron1203@gmail.com>2023-08-08 17:13:29 +0900
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 19:04:38 +0100
commit44f71ed313d03e129dcb9d34720425245a384050 (patch)
tree82542e45f264ed978e06ba72e686d84ff344b906 /gcc/rust/hir/tree
parentaaea26f377bb23ad9c99b4348f46777ba92d3900 (diff)
downloadgcc-44f71ed313d03e129dcb9d34720425245a384050.zip
gcc-44f71ed313d03e129dcb9d34720425245a384050.tar.gz
gcc-44f71ed313d03e129dcb9d34720425245a384050.tar.bz2
gccrs: Initial implementation of v0 mangling
gcc/rust/ChangeLog: * backend/rust-compile-context.h: Modify declaration. * backend/rust-mangle.cc (struct V0Path): New struct. (v0_path): New function. (legacy_mangle_name): Take Context as argument. (v0_numeric_prefix): Fix type strings. (v0_complex_type_prefix): New function. (v0_add_integer_62): Deleted (v0_integer_62): New function. (v0_add_opt_integer_62): Deleted. (v0_opt_integer_62): New function. (v0_add_disambiguator): Deleted. (v0_disambiguator): New function. (v0_type_prefix): Support more types. (v0_generic_args): New function. (v0_add_identifier): Deleted. (v0_identifier): New function. (v0_type_path): New function. (v0_function_path): New function. (v0_scope_path): New function. (v0_crate_path): New function. (v0_inherent_or_trait_impl_path): New function. (v0_mangle_item): Use v0_path. (Mangler::mangle_item): Take Context as argument. * backend/rust-mangle.h (class Context): Add forward declaration. * hir/tree/rust-hir-item.h: Fix include. Signed-off-by: Raiki Tamura <tamaron1203@gmail.com>
Diffstat (limited to 'gcc/rust/hir/tree')
-rw-r--r--gcc/rust/hir/tree/rust-hir-item.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rust/hir/tree/rust-hir-item.h b/gcc/rust/hir/tree/rust-hir-item.h
index b174acd..6cd4189 100644
--- a/gcc/rust/hir/tree/rust-hir-item.h
+++ b/gcc/rust/hir/tree/rust-hir-item.h
@@ -22,6 +22,7 @@
#include "rust-abi.h"
#include "rust-ast-full-decls.h"
#include "rust-common.h"
+#include "rust-hir-expr.h"
#include "rust-hir.h"
#include "rust-hir-path.h"