Skip to content

Commit 5c038e0

Browse files
Merge pull request #9806 from augusto2112/fix-mangling-embedded
[lldb] Recognize embedded Swift mangling in Mangled::GetManglingScheme
2 parents 7f8786f + 812c57e commit 5c038e0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lldb/source/Core/Mangled.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,10 @@ Mangled::ManglingScheme Mangled::GetManglingScheme(llvm::StringRef const name) {
8888
// Swift 4.2 used "$S" and "_$S".
8989
// Swift 5 and onward uses "$s" and "_$s".
9090
// Swift also uses "@__swiftmacro_" as a prefix for mangling filenames.
91+
// Embedded Swift introduced "$e" and "_$e" as Swift mangling prefixes.
9192
if (name.starts_with("$S") || name.starts_with("_$S") ||
9293
name.starts_with("$s") || name.starts_with("_$s") ||
94+
name.starts_with("$e") || name.starts_with("_$e") ||
9395
name.starts_with("@__swiftmacro_"))
9496
return Mangled::eManglingSchemeSwift;
9597

0 commit comments

Comments
 (0)