[IRGen] Corrected mangling of AsyncFunctionPointers.

Previously, the suffix "AD" was used to mangle AsyncFunctionPointers.
That was incorrect because it was already used in the mangling scheme.
Here, that error is fixed by using 'u' under the thunk or specialization
operator 'T' to mangle AsyncFunctionPointers.  Additionally, printing
and demangling support is added.

rdar://problem/72336407
This commit is contained in:
Nate Chandler
2020-12-15 11:31:11 -08:00
parent d89ffe789a
commit 73cfca89b6
39 changed files with 55 additions and 35 deletions

View File

@@ -1,7 +1,7 @@
// REQUIRES: VENDOR=apple
// RUN: %target-swift-frontend -emit-ir %s -enable-experimental-concurrency -validate-tbd-against-ir=all -module-name test | %FileCheck %s
// CHECK: @"$s4test6testityyYFAD" = hidden global %swift.async_func_pointer
// CHECK: @"$s4test6testityyYFTu" = hidden global %swift.async_func_pointer
@asyncHandler
public func testit() { }