Skip to content

Commit f7b4c7d

Browse files
committed
Adjust tests to new resume partial function mangling
1 parent 9aa2111 commit f7b4c7d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/DebugInfo/async-args.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func withGenericArg<T>(_ msg: T) async {
1818
// CHECK-SAME: DW_OP_plus_uconst, {{[0-9]+}}))
1919

2020
await forceSplit()
21-
// CHECK-LABEL: {{^define .*}} @"$s1M14withGenericArgyyxYlF.resume.0"(i8* swiftasync %0)
21+
// CHECK-LABEL: {{^define .*}} @"$s1M14withGenericArgyyxYlFTQ0_"(i8* swiftasync %0)
2222
// CHECK: call void @llvm.dbg.declare(metadata i8* %0,
2323
// CHECK-SAME: metadata ![[MSG_R:[0-9]+]], metadata !DIExpression(DW_OP_deref,
2424
// CHECK-SAME: DW_OP_plus_uconst, [[OFFSET:[0-9]+]],

test/DebugInfo/async-let-await.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public func getVegetables() async -> [String] {
88
return ["leek", "carrot"]
99
}
1010

11-
// CHECK: define {{.*}} @"$s1M14chopVegetablesSaySSGyYKF.resume.0"
11+
// CHECK: define {{.*}} @"$s1M14chopVegetablesSaySSGyYKFTQ0_"
1212
public func chopVegetables() async throws -> [String] {
1313
let veggies = await getVegetables()
1414
// CHECK-NOT: {{^define }}

test/DebugInfo/async-lifetime-extension.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Test that lifetime extension preserves a dbg.declare for "n" in the resume
99
// funclet.
1010

11-
// CHECK-LABEL: define {{.*}} void @"$s1a4fiboyS2iYF.resume.0"
11+
// CHECK-LABEL: define {{.*}} void @"$s1a4fiboyS2iYFTQ0_"
1212
// CHECK-NEXT: entryresume.0:
1313
// CHECK-NEXT: call void @llvm.dbg.declare(metadata {{.*}}%0, metadata ![[RHS:[0-9]+]], {{.*}}!DIExpression(DW_OP
1414
// CHECK-NEXT: call void @llvm.dbg.declare(metadata {{.*}}%0, metadata ![[LHS:[0-9]+]], {{.*}}!DIExpression(DW_OP

test/DebugInfo/async-local-var.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func wait() async throws {}
1414
public func makeDinner() async throws -> String {
1515
let local = await getString()
1616
try await wait()
17-
// CHECK-LABEL: define {{.*}} void @"$s1a10makeDinnerSSyYKF.resume.0"
17+
// CHECK-LABEL: define {{.*}} void @"$s1a10makeDinnerSSyYKFTQ0_"
1818
// CHECK-NEXT: entryresume.0:
1919
// CHECK-NOT: {{ ret }}
2020
// CHECK: call void @llvm.dbg.declare(metadata {{.*}}%0, metadata ![[LOCAL:[0-9]+]], {{.*}}!DIExpression(DW_OP_deref

0 commit comments

Comments
 (0)