2020// CHECK-LINETABLES-NOT: DIBasicType
2121// --------------------------------------------------------------------
2222// Now check that we do generate line+scope info with -g.
23- // RUN: %target-swift-frontend %use_no_opaque_pointers % /s -emit-ir -g -o - \
23+ // RUN: %target-swift-frontend %/s -emit-ir -g -o - \
2424// RUN: | %FileCheck %s --check-prefixes CHECK,DWARF-CHECK
25- // RUN: %target-swift-frontend %/s -emit-ir -g -o -
2625// --------------------------------------------------------------------
2726// Currently -gdwarf-types should give the same results as -g.
28- // RUN: %target-swift-frontend %use_no_opaque_pointers %/s -emit-ir -gdwarf-types -o - \
27+ // RUN: %target-swift-frontend %/s -emit-ir -gdwarf-types -o - \
2928// RUN: | %FileCheck %s --check-prefixes CHECK,DWARF-CHECK
30- // RUN: %target-swift-frontend %/s -emit-ir -gdwarf-types -o -
3129// --------------------------------------------------------------------
3230// Verify that -g -debug-info-format=dwarf gives the same results as -g.
33- // RUN: %target-swift-frontend %use_no_opaque_pointers % /s -emit-ir -g -debug-info-format=dwarf -o - \
31+ // RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=dwarf -o - \
3432// RUN: | %FileCheck %s --check-prefixes CHECK,DWARF-CHECK
35- // RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=dwarf -o -
3633// --------------------------------------------------------------------
37- // RUN: %target-swift-frontend %use_no_opaque_pointers % /s -emit-ir -g -debug-info-format=codeview -o - \
34+ // RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=codeview -o - \
3835// RUN: | %FileCheck %s --check-prefixes CHECK,CV-CHECK
39- // RUN: %target-swift-frontend %/s -emit-ir -g -debug-info-format=codeview -o -
4036// --------------------------------------------------------------------
4137//
4238// CHECK: foo
@@ -48,12 +44,12 @@ func foo(_ a: Int64, _ b: Int64) -> Int64 {
4844 var b = b
4945 // CHECK-DAG: ![[ALOC:.*]] = !DILocation(line: [[@LINE-3]],{{.*}} scope: ![[FOO]])
5046 // Check that a is the first and b is the second argument.
51- // CHECK-DAG: store i64 %0, i64* [[AADDR:.*]], align
52- // CHECK-DAG: store i64 %1, i64* [[BADDR:.*]], align
47+ // CHECK-DAG: store i64 %0, ptr [[AADDR:.*]], align
48+ // CHECK-DAG: store i64 %1, ptr [[BADDR:.*]], align
5349 // CHECK-DAG: [[AVAL:%.*]] = getelementptr inbounds {{.*}}, [[AMEM:.*]], i32 0, i32 0
5450 // CHECK-DAG: [[BVAL:%.*]] = getelementptr inbounds {{.*}}, [[BMEM:.*]], i32 0, i32 0
55- // CHECK-DAG: call void @llvm.dbg.declare(metadata i64* [[AADDR]], metadata ![[AARG:.*]], metadata !DIExpression()), !dbg ![[ALOC]]
56- // CHECK-DAG: call void @llvm.dbg.declare(metadata i64* [[BADDR]], metadata ![[BARG:.*]], metadata !DIExpression())
51+ // CHECK-DAG: call void @llvm.dbg.declare(metadata ptr [[AADDR]], metadata ![[AARG:.*]], metadata !DIExpression()), !dbg ![[ALOC]]
52+ // CHECK-DAG: call void @llvm.dbg.declare(metadata ptr [[BADDR]], metadata ![[BARG:.*]], metadata !DIExpression())
5753 // CHECK-DAG: ![[AARG]] = !DILocalVariable(name: "a", arg: 1
5854 // CHECK-DAG: ![[BARG]] = !DILocalVariable(name: "b", arg: 2
5955 if b != 0 {
0 commit comments