aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/backend/rust-mangle.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-mangle.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-mangle.h')
-rw-r--r--gcc/rust/backend/rust-mangle.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/rust/backend/rust-mangle.h b/gcc/rust/backend/rust-mangle.h
index 0cc7f76..03e1dc6 100644
--- a/gcc/rust/backend/rust-mangle.h
+++ b/gcc/rust/backend/rust-mangle.h
@@ -34,8 +34,7 @@ public:
// this needs to support Legacy and V0 see github #429 or #305
std::string mangle_item (const TyTy::BaseType *ty,
- const Resolver::CanonicalPath &path,
- const std::string &crate_name) const;
+ const Resolver::CanonicalPath &path) const;
static void set_mangling (int frust_mangling_value)
{