Skip to content

Commit b9712db

Browse files
adrian-prantlgottesmm
authored andcommitted
Update testcases for upstream LLVM changes.
rdar://25785066 (cherry picked from commit 01c992c) (cherry picked from commit 2e2bac1)
1 parent da9c13a commit b9712db

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

test/DebugInfo/InlineBridgingHeader.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
// CHECK: !llvm.dbg.cu = !{![[SWIFT_CU:[0-9]+]], ![[CLANG_CU:[0-9]+]]}
88
// CHECK: ![[SWIFT_CU]] = distinct !DICompileUnit(language: DW_LANG_Swift
99
// CHECK: ![[CLANG_CU]] = distinct !DICompileUnit(language: DW_LANG_ObjC
10-
// CHECK: DISubprogram(
11-
// CHECK-SAME: "Foo"
10+
// CHECK: DISubprogram(name: "Foo"{{.*}} unit: ![[CLANG_CU]],
1211

1312
Foo()

test/DebugInfo/closure-multivalue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ demo()
3434
// RUN: %target-swift-frontend %s -emit-ir -g -o - | FileCheck %s --check-prefix=CHECK-O0
3535
// Verify that a reabstraction thunk does not have a line number.
3636
// CHECK-O0-NOT: DW_OP_bit_piece
37-
// CHECK-O0: !DISubprogram(linkageName: "_TTRXFo_oSSoSS_dSb_XFo_iSSiSS_dSb_", scope: !{{[0-9]+}}, file: !{{[0-9]+}}, type: !{{[0-9]+}},
3837
// CHECK-O0-NOT: DW_OP_bit_piece
3938
// CHECK-O0: !DILocalVariable(name: "a", arg: 1{{.*}} line: 17,
4039
// CHECK-O0-NOT: DW_OP_bit_piece
4140
// CHECK-O0: !DILocalVariable(name: "b", arg: 2{{.*}} line: 17,
4241
// CHECK-O0-NOT: DW_OP_bit_piece
42+
// CHECK-O0: !DISubprogram(linkageName: "_TTRXFo_oSSoSS_dSb_XFo_iSSiSS_dSb_",

test/DebugInfo/inlinedAt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ public func f(_ i : Int) -> Int { // 301
3939

4040
// CHECK: ![[F:.*]] = distinct !DISubprogram(name: "f",
4141
// CHECK: ![[G:.*]] = distinct !DISubprogram(name: "g",
42-
// CHECK: ![[H:.*]] = distinct !DISubprogram(name: "h",
4342

4443
// CHECK: ![[L3:.*]] = !DILocation(line: 302, column: 13,
4544
// CHECK-SAME: scope: ![[F_SCOPE:.*]])
4645
// CHECK: ![[F_SCOPE]] = distinct !DILexicalBlock(scope: ![[F]],
4746
// CHECK-SAME: line: 301, column: 33)
4847
// CHECK: ![[G_SCOPE:.*]] = distinct !DILexicalBlock(scope: ![[G]],
4948
// CHECK-SAME: line: 201, column: 26)
49+
// CHECK: ![[H:.*]] = distinct !DISubprogram(name: "h",
5050
// CHECK: ![[L1]] = !DILocation(line: 101, column: 8, scope: ![[H]],
5151
// CHECK-SAME: inlinedAt: ![[L2:.*]])
5252
// CHECK: ![[L2]] = !DILocation(line: 203, column: 13, scope: ![[G_SCOPE]],

test/DebugInfo/top_level_var.swift

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ var a = 1
55
markUsed(a)
66
// Verify that global variables are emitted once in main, once as
77
// global variable.
8-
// CHECK: ![[MAIN:.*]] = distinct !DISubprogram(name: "main",{{.*}} line: 1
9-
// CHECK: ![[MOD:.*]] = !DIModule({{.*}}, name: "top_level_var"
108
// CHECK: !DIGlobalVariable(name: "a",
11-
// CHECK-SAME: scope: ![[MOD]]
12-
// CHECK-SAME: isDefinition: true
9+
// CHECK-SAME: scope: ![[MOD:[0-9]+]]
10+
// CHECK: ![[MOD]] = !DIModule(scope: null, name: "top_level_var"
11+
// CHECK: ![[MAIN:.*]] = distinct !DISubprogram(name: "main",
12+
// CHECK-SAME: line: 1
13+
// CHECK-SAME: isDefinition: true

0 commit comments

Comments
 (0)