1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-21 18:22:53 +01:00

Demangle: correct swift_async demangling for Microsoft scheme

The emission was corrected for the swift_async calling convention but
the demangling support was not.  This repairs the demangling support as
well.
This commit is contained in:
Saleem Abdulrasool 2021-07-14 11:42:24 -07:00
parent 0af449d2a7
commit ba012f02f8
2 changed files with 2 additions and 2 deletions

View File

@ -1713,7 +1713,7 @@ CallingConv Demangler::demangleCallingConvention(StringView &MangledName) {
return CallingConv::Vectorcall;
case 'S':
return CallingConv::Swift;
case 'T':
case 'W':
return CallingConv::SwiftAsync;
}

View File

@ -341,7 +341,7 @@
?swift_func@@YSXXZ
; CHECK: void __attribute__((__swiftcall__)) swift_func(void)
?swift_async_func@@YTXXZ
?swift_async_func@@YWXXZ
; CHECK: void __attribute__((__swiftasynccall__)) swift_async_func(void)
??$fn_tmpl@$1?extern_c_func@@YAXXZ@@YAXXZ