Skip to content

Commit 3241d91

Browse files
committed
[lldb] Recognize embedded Swift mangling in Mangled::GetManglingScheme
rdar://142329765
1 parent bbac349 commit 3241d91

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
@@ -79,8 +79,10 @@ Mangled::ManglingScheme Mangled::GetManglingScheme(llvm::StringRef const name) {
7979
// Swift 4.2 used "$S" and "_$S".
8080
// Swift 5 and onward uses "$s" and "_$s".
8181
// Swift also uses "@__swiftmacro_" as a prefix for mangling filenames.
82+
// Embedded Swift introduced "$e" and "_$e" as Swift mangling prefixes.
8283
if (name.starts_with("$S") || name.starts_with("_$S") ||
8384
name.starts_with("$s") || name.starts_with("_$s") ||
85+
name.starts_with("$e") || name.starts_with("_$e") ||
8486
name.starts_with("@__swiftmacro_"))
8587
return Mangled::eManglingSchemeSwift;
8688

0 commit comments

Comments
 (0)