mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
master-next: Update DebugInfo tests for llvm r347806
Check for the DISPFlagDefinition flag instead of "isDefinition: true".
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user