master-next: Update DebugInfo tests for llvm r347806

Check for the DISPFlagDefinition flag instead of "isDefinition: true".
This commit is contained in:
Bob Wilson
2018-11-29 16:51:37 -08:00
parent 93b29dcc89
commit 5e16a652b5
3 changed files with 5 additions and 5 deletions

View File

@@ -4,7 +4,7 @@ struct Foo {
// CHECK: !DISubprogram(name: "init", linkageName: "$s12Constructors3FooV1xACs5Int64V_tcfC",
// CHECK-SAME: line: [[@LINE+3]]
// CHECK-NOT: scopeLine: 0
// CHECK-SAME: isDefinition: true
// CHECK-SAME: DISPFlagDefinition
init(x: Int64) {}
func bar(_ x: Int64) {}
}

View File

@@ -12,7 +12,7 @@ protocol RandomAccessIndex : IntegerArithmetic {
// archetype.ExistentialTuple <A : RandomAccessIndex, B>(x : A, y : A) -> B
// CHECK: !DISubprogram(name: "ExistentialTuple", linkageName: "$s9archetype16ExistentialTuple
// CHECK-SAME: line: [[@LINE+2]]
// CHECK-SAME: isDefinition: true
// CHECK-SAME: DISPFlagDefinition
func ExistentialTuple<T: RandomAccessIndex>(_ x: T, y: T) -> T.Distance {
// (B, Swift.Bool)
// CHECK: !DILocalVariable(name: "tmp"

View File

@@ -35,7 +35,7 @@ class MyObject : NSObject {
}
}
// SANITY-DAG: !DISubprogram(name: "blah",{{.*}} line: [[@LINE+2]],{{.*}} isDefinition: true
// SANITY-DAG: !DISubprogram(name: "blah",{{.*}} line: [[@LINE+2]],{{.*}} DISPFlagDefinition
extension MyObject {
@objc func blah() {
var _ = MyObject()
@@ -43,7 +43,7 @@ extension MyObject {
}
// SANITY-DAG: ![[NSOBJECT:.*]] = !DICompositeType(tag: DW_TAG_structure_type, name: "NSObject",{{.*}} identifier: "$sSo8NSObjectC"
// SANITY-DAG: !DIGlobalVariable(name: "NsObj",{{.*}} line: [[@LINE+1]],{{.*}} type: ![[NSOBJECT]],{{.*}} isDefinition: true
// SANITY-DAG: !DIGlobalVariable(name: "NsObj",{{.*}} line: [[@LINE+1]],{{.*}} type: ![[NSOBJECT]],{{.*}} DISPFlagDefinition
var NsObj: NSObject
NsObj = MyObject()
var MyObj: MyObject
@@ -77,7 +77,7 @@ func useOptions(_ opt: URL.BookmarkCreationOptions)
// LOC-CHECK: ![[THUNK:.*]] = distinct !DISubprogram({{.*}}linkageName: "$s4main8MyObjectC0B3ArrSo7NSArrayCvgTo"
// LOC-CHECK-NOT: line:
// LOC-CHECK-SAME: isDefinition: true
// LOC-CHECK-SAME: DISPFlagDefinition
// LOC-CHECK: ![[DBG]] = !DILocation(line: 0, scope: ![[THUNK]])
// These debug locations should all be in ordered by increasing line number.