[DebugInfo] Update tests to expect new LLVM debug format

This commit is contained in:
Felipe de Azevedo Piovezan
2024-07-23 10:54:02 -07:00
parent bd05ae8603
commit a321b0afe0
74 changed files with 353 additions and 355 deletions

View File

@@ -15,8 +15,8 @@ func simple(_ placeholder: Int64) throws -> () {
// CHECK-SAME: i64
// CHECK-SAME: %swift.refcounted* {{.*}}swiftself
// CHECK-SAME: %swift.error** noalias nocapture dereferenceable(4)
// CHECK: call void @llvm.dbg.declare
// CHECK: call void @llvm.dbg.declare({{.*}}, metadata ![[ERROR:[0-9]+]], metadata !DIExpression(DW_OP_deref))
// CHECK: #dbg_declare
// CHECK: #dbg_declare({{.*}}, ![[ERROR:[0-9]+]], !DIExpression(DW_OP_deref)
// CHECK-DAG: ![[ERRTY:.*]] = !DICompositeType({{.*}}identifier: "$ss5Error_pD"
// CHECK-DAG: ![[ERROR]] = !DILocalVariable(name: "$error", arg: 2, {{.*}}, type: ![[ERRTY]], flags: DIFlagArtificial)
throw MyError.Simple