aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-compile-context.h
diff options
context:
space:
mode:
authorPhilip Herron <philip.herron@embecosm.com>2022-01-25 17:25:16 +0000
committerPhilip Herron <philip.herron@embecosm.com>2022-01-29 14:17:44 +0000
commit63686e099bfd0e3e89789942f20a05a750541d6b (patch)
tree5150be96332c50c00b934e3c51b32223d3dbe392 /gcc/rust/backend/rust-compile-context.h
parent375d8b5900725ef7076b51509e570373c379259d (diff)
downloadgcc-63686e099bfd0e3e89789942f20a05a750541d6b.zip
gcc-63686e099bfd0e3e89789942f20a05a750541d6b.tar.gz
gcc-63686e099bfd0e3e89789942f20a05a750541d6b.tar.bz2
Refactor Mangling API crate name should be part of the CanonicalPath
The CanonicalPath of an item such as a function at the moment does not contain the associated crate name but it will eventually. This also updates the legacy mangling to be even more conformant. Qualified paths such as: <A as B> are meant to actually start with _$LT$ and spaces are $u20$.
Diffstat (limited to 'gcc/rust/backend/rust-compile-context.h')
-rw-r--r--gcc/rust/backend/rust-compile-context.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/rust/backend/rust-compile-context.h b/gcc/rust/backend/rust-compile-context.h
index b6f76ab..46f88b3 100644
--- a/gcc/rust/backend/rust-compile-context.h
+++ b/gcc/rust/backend/rust-compile-context.h
@@ -304,7 +304,7 @@ public:
std::string mangle_item (const TyTy::BaseType *ty,
const Resolver::CanonicalPath &path) const
{
- return mangler.mangle_item (ty, path, mappings->get_current_crate_name ());
+ return mangler.mangle_item (ty, path);
}
private: