Skip to content

Commit 97f0228

Browse files
tromeyvadimcn
authored andcommitted
Add Rust support to Mangled
This adds Rust support to Mangled. I am not completely certain that this is needed (or alternatively that it does enough, maybe Mangled::GuessLanguage needs a Rust case). This should be checked before attempting to upstream.
1 parent 329fda3 commit 97f0228

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lldb/source/Core/Mangled.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,11 @@ ConstString Mangled::GetDemangledName() const {
273273
break;
274274
case eManglingSchemeItanium: {
275275
demangled_name = GetItaniumDemangledStr(mangled_name);
276+
277+
if (language == lldb::eLanguageTypeRust) {
278+
remove_rust_hash(demangled_name);
279+
}
280+
276281
break;
277282
}
278283
case eManglingSchemeRustV0:

0 commit comments

Comments
 (0)