aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-01-03 12:19:44 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-01-03 12:19:44 +0000
commitbfb7ef7fc8244f9196c55202e4ae5fbbe1ebdd30 (patch)
tree9cd5c52d621fa0b99d42c1257cde20dbb5b64ac8 /gcc/rust/backend/rust-compile-context.h
parent69f6be3ee483c9895b4b5187a44b3e1c8be2ba63 (diff)
downloadgcc-bfb7ef7fc8244f9196c55202e4ae5fbbe1ebdd30.zip
gcc-bfb7ef7fc8244f9196c55202e4ae5fbbe1ebdd30.tar.gz
gcc-bfb7ef7fc8244f9196c55202e4ae5fbbe1ebdd30.tar.bz2
HIR::ImplBlock items should mangle based from their canonical path's
Legacy mangling converts the '<', '>' from their canonical paths into '..' this means we can simply reuse our normal mangle_item code for all types of symbol. So we can now remove the mangle_impl_item code prior to having the canonical path code in place. Fixes #845
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r--gcc/rust/backend/rust-compile-context.h8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h
index 896d42e..43c23dd 100644
--- a/gcc/rust/backend/rust-compile-context.h
+++ b/gcc/rust/backend/rust-compile-context.h
@@ -310,14 +310,6 @@ public:
return mangler.mangle_item (ty, path, mappings->get_current_crate_name ());
}
- std::string mangle_impl_item (const TyTy::BaseType *self,
- const TyTy::BaseType *ty,
- const std::string &name) const
- {
- return mangler.mangle_impl_item (self, ty, name,
- mappings->get_current_crate_name ());
- }
-
private:
::Backend *backend;
Resolver::Resolver *resolver;