Skip to content

Commit 7b6c40a

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 092b6c5 commit 7b6c40a

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
@@ -257,6 +257,11 @@ ConstString Mangled::GetDemangledName() const {
257257
break;
258258
case eManglingSchemeItanium: {
259259
demangled_name = GetItaniumDemangledStr(mangled_name);
260+
261+
if (language == lldb::eLanguageTypeRust) {
262+
remove_rust_hash(demangled_name);
263+
}
264+
260265
break;
261266
}
262267
case eManglingSchemeRustV0:

0 commit comments

Comments
 (0)