Skip to content

Commit 0ac9a7d

Browse files
adrian-prantlbob-wilson
authored andcommitted
Update tests for upstream LLVM IR assembler changes
1 parent e787906 commit 0ac9a7d

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/DebugInfo/Destructors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
public class Foo {
44
// CHECK: !DISubprogram(name: "deinit", linkageName: "$s11Destructors3FooCfD"
55
// CHECK-SAME: line: [[@LINE-2]]
6-
// CHECK-SAME: isDefinition: true
6+
// CHECK-SAME: DISPFlagDefinition
77
var x : Int64
88
init(x: Int64) { self.x = x }
99
}

test/DebugInfo/PrivateDiscriminator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public class Outer {
3232
// CHECK: !DISubprogram(name: "getMember"
3333
// CHECK-SAME: linkageName: "{{[^"]*}}[[DISCRIMINATOR]]
3434
// CHECK-SAME: line: [[@LINE+2]]
35-
// CHECK-SAME: isLocal: true, isDefinition: true
35+
// CHECK-SAME: spFlags: DISPFlagLocalToUnit | DISPFlagDefinition
3636
fileprivate func getMember() -> Int64 { return member.i }
3737
}
3838
}

test/DebugInfo/autoclosure.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func &&&&&(lhs: Bool, rhs: @autoclosure () -> Bool) -> Bool {
2121
func call_me(_ input: Int64) -> Void {
2222
// rdar://problem/14627460
2323
// An autoclosure should have a line number in the debug info and a scope line of 0.
24-
// CHECK-DAG: !DISubprogram({{.*}}linkageName: "$s11autoclosure7call_meyys5Int64VFSbyXEfu_",{{.*}} isLocal: true, isDefinition: true
24+
// CHECK-DAG: !DISubprogram({{.*}}linkageName: "$s11autoclosure7call_meyys5Int64VFSbyXEfu_",{{.*}} spFlags: DISPFlagLocalToUnit | DISPFlagDefinition
2525
// But not in the line table.
2626
// CHECK-DAG: ![[DBG]] = !DILocation(line: [[@LINE+1]],
2727
if input != 0 &&&&& ( get_truth (input * 2 + 1) > 0 ) {

test/DebugInfo/top_level_var.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ markUsed(a)
1010
// CHECK: ![[MOD]] = !DIModule(scope: null, name: "top_level_var"
1111
// CHECK: ![[MAIN:.*]] = distinct !DISubprogram(name: "main",
1212
// CHECK-SAME: line: 1
13-
// CHECK-SAME: isDefinition: true
13+
// CHECK-SAME: DISPFlagDefinition

0 commit comments

Comments
 (0)