Skip to content

Commit 5e16a65

Browse files
committed
master-next: Update DebugInfo tests for llvm r347806
Check for the DISPFlagDefinition flag instead of "isDefinition: true".
1 parent 93b29dc commit 5e16a65

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

test/DebugInfo/Constructors.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ struct Foo {
44
// CHECK: !DISubprogram(name: "init", linkageName: "$s12Constructors3FooV1xACs5Int64V_tcfC",
55
// CHECK-SAME: line: [[@LINE+3]]
66
// CHECK-NOT: scopeLine: 0
7-
// CHECK-SAME: isDefinition: true
7+
// CHECK-SAME: DISPFlagDefinition
88
init(x: Int64) {}
99
func bar(_ x: Int64) {}
1010
}

test/DebugInfo/archetype.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ protocol RandomAccessIndex : IntegerArithmetic {
1212
// archetype.ExistentialTuple <A : RandomAccessIndex, B>(x : A, y : A) -> B
1313
// CHECK: !DISubprogram(name: "ExistentialTuple", linkageName: "$s9archetype16ExistentialTuple
1414
// CHECK-SAME: line: [[@LINE+2]]
15-
// CHECK-SAME: isDefinition: true
15+
// CHECK-SAME: DISPFlagDefinition
1616
func ExistentialTuple<T: RandomAccessIndex>(_ x: T, y: T) -> T.Distance {
1717
// (B, Swift.Bool)
1818
// CHECK: !DILocalVariable(name: "tmp"

test/DebugInfo/test-foundation.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ class MyObject : NSObject {
3535
}
3636
}
3737

38-
// SANITY-DAG: !DISubprogram(name: "blah",{{.*}} line: [[@LINE+2]],{{.*}} isDefinition: true
38+
// SANITY-DAG: !DISubprogram(name: "blah",{{.*}} line: [[@LINE+2]],{{.*}} DISPFlagDefinition
3939
extension MyObject {
4040
@objc func blah() {
4141
var _ = MyObject()
4242
}
4343
}
4444

4545
// SANITY-DAG: ![[NSOBJECT:.*]] = !DICompositeType(tag: DW_TAG_structure_type, name: "NSObject",{{.*}} identifier: "$sSo8NSObjectC"
46-
// SANITY-DAG: !DIGlobalVariable(name: "NsObj",{{.*}} line: [[@LINE+1]],{{.*}} type: ![[NSOBJECT]],{{.*}} isDefinition: true
46+
// SANITY-DAG: !DIGlobalVariable(name: "NsObj",{{.*}} line: [[@LINE+1]],{{.*}} type: ![[NSOBJECT]],{{.*}} DISPFlagDefinition
4747
var NsObj: NSObject
4848
NsObj = MyObject()
4949
var MyObj: MyObject
@@ -77,7 +77,7 @@ func useOptions(_ opt: URL.BookmarkCreationOptions)
7777

7878
// LOC-CHECK: ![[THUNK:.*]] = distinct !DISubprogram({{.*}}linkageName: "$s4main8MyObjectC0B3ArrSo7NSArrayCvgTo"
7979
// LOC-CHECK-NOT: line:
80-
// LOC-CHECK-SAME: isDefinition: true
80+
// LOC-CHECK-SAME: DISPFlagDefinition
8181
// LOC-CHECK: ![[DBG]] = !DILocation(line: 0, scope: ![[THUNK]])
8282

8383
// These debug locations should all be in ordered by increasing line number.

0 commit comments

Comments
 (0)