File tree Expand file tree Collapse file tree 6 files changed +16
-26
lines changed
llvm-spirv/test/DebugInfo Expand file tree Collapse file tree 6 files changed +16
-26
lines changed Original file line number Diff line number Diff line change @@ -22,21 +22,17 @@ target triple = "spir64-unknown-unknown"
22
22
; Ensure that top level imported declarations don't produce an extra degenerate
23
23
; concrete subprogram definition.
24
24
25
- ; FIXME: imported entities should only be emitted to the abstract origin if one is present
26
-
27
25
; CHECK: DW_TAG_compile_unit
28
26
; CHECK: DW_TAG_subprogram
29
27
; CHECK: DW_AT_name {{.*}} "f1"
30
28
; CHECK: DW_TAG_imported_declaration
31
29
; CHECK: NULL
32
- ; CHECK: DW_TAG_namespace
33
- ; CHECK: DW_TAG_subprogram
34
- ; CHECK: NULL
35
30
; CHECK: DW_TAG_subprogram
36
31
; CHECK: DW_AT_name {{.*}} "f2"
37
32
; CHECK: DW_TAG_inlined_subroutine
38
- ; CHECK: DW_TAG_imported_declaration
39
- ; CHECK: NULL
33
+ ; CHECK: NULL
34
+ ; CHECK: DW_TAG_namespace
35
+ ; CHECK: DW_TAG_subprogram
40
36
; CHECK: NULL
41
37
; CHECK: NULL
42
38
Original file line number Diff line number Diff line change @@ -53,17 +53,17 @@ attributes #1 = { nounwind readnone }
53
53
54
54
; CHECK: DW_TAG_variable
55
55
; CHECK-NOT: DW_TAG
56
- ; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]*}}] = "GLB ")
56
+ ; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]*}}] = "LOC ")
57
57
; CHECK-NOT: DW_TAG
58
- ; CHECK: DW_AT_decl_file [DW_FORM_data1] ("/work/llvm/vanilla/test/DebugInfo{{[/\\]}}test.c")
58
+ ; CHECK: DW_AT_decl_file [DW_FORM_data1] ("/work/llvm/vanilla/test/DebugInfo{{[/\\]}}test.c")
59
59
; CHECK-NOT: DW_TAG
60
- ; CHECK: DW_AT_decl_line [DW_FORM_data1] (1 )
60
+ ; CHECK: DW_AT_decl_line [DW_FORM_data1] (4 )
61
61
62
62
; CHECK: DW_TAG_variable
63
63
; CHECK-NOT: DW_TAG
64
- ; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]*}}] = "LOC ")
64
+ ; CHECK: DW_AT_name [DW_FORM_strp] ( .debug_str[0x{{[0-9a-f]*}}] = "GLB ")
65
65
; CHECK-NOT: DW_TAG
66
- ; CHECK: DW_AT_decl_file [DW_FORM_data1] ("/work/llvm/vanilla/test/DebugInfo{{[/\\]}}test.c")
66
+ ; CHECK: DW_AT_decl_file [DW_FORM_data1] ("/work/llvm/vanilla/test/DebugInfo{{[/\\]}}test.c")
67
67
; CHECK-NOT: DW_TAG
68
- ; CHECK: DW_AT_decl_line [DW_FORM_data1] (4 )
68
+ ; CHECK: DW_AT_decl_line [DW_FORM_data1] (1 )
69
69
Original file line number Diff line number Diff line change 37
37
; A a;
38
38
; B b;
39
39
; U u;
40
+ ;
41
+ ; CHECK: DW_TAG_subprogram
42
+ ; CHECK: DW_AT_name {{.*}}"free")
43
+ ; CHECK-NOT: DW_AT_accessibility
40
44
41
45
; CHECK: DW_TAG_member
42
46
; CHECK: DW_AT_name {{.*}}"pub_default_static")
80
84
; CHECK: DW_TAG_subprogram
81
85
; CHECK: DW_AT_name {{.*}}"union_pub_default")
82
86
; CHECK: DW_AT_accessibility
83
- ; CHECK: DW_TAG
84
- ;
85
- ; CHECK: DW_TAG_subprogram
86
- ; CHECK: DW_AT_name {{.*}}"free")
87
- ; CHECK-NOT: DW_AT_accessibility
88
- ; CHECK-NOT: DW_TAG
89
87
;
90
88
; ModuleID = '/llvm/tools/clang/test/CodeGenCXX/debug-info-access.cpp'
91
89
source_filename = "test/DebugInfo/X86/debug-info-access.ll"
Original file line number Diff line number Diff line change @@ -24,10 +24,10 @@ target triple = "spir64-unknown-unknown"
24
24
25
25
; This assumes the variable will appear before the function.
26
26
; LINKAGE1: .section .debug_info
27
- ; LINKAGE1: DW_TAG_variable
27
+ ; LINKAGE1: DW_TAG_subprogram
28
28
; LINKAGE1-NOT: DW_TAG
29
29
; LINKAGE1: {{DW_AT_(MIPS_)?linkage_name}}
30
- ; LINKAGE1: DW_TAG_subprogram
30
+ ; LINKAGE1: DW_TAG_variable
31
31
; LINKAGE1-NOT: DW_TAG
32
32
; LINKAGE1: {{DW_AT_(MIPS_)?linkage_name}}
33
33
; LINKAGE1: .section
Original file line number Diff line number Diff line change @@ -39,8 +39,6 @@ target triple = "spir64-unknown-unknown"
39
39
; CHECK: DW_TAG_lexical_block
40
40
; CHECK-NOT: {{DW_TAG|NULL}}
41
41
; CHECK: DW_TAG_variable
42
- ; CHECK-NOT: {{DW_TAG|NULL}}
43
- ; CHECK: DW_TAG_imported_module
44
42
45
43
;; Abstract "bar" function
46
44
; CHECK: [[Offset_bar]]: DW_TAG_subprogram
@@ -67,8 +65,6 @@ target triple = "spir64-unknown-unknown"
67
65
; CHECK: DW_TAG_lexical_block
68
66
; CHECK-NOT: {{DW_TAG|NULL}}
69
67
; CHECK: DW_TAG_variable
70
- ; CHECK-NOT: {{DW_TAG|NULL}}
71
- ; CHECK: DW_TAG_imported_module
72
68
73
69
74
70
; Function Attrs: alwaysinline nounwind
Original file line number Diff line number Diff line change 8
8
target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64"
9
9
target triple = "spir64-unknown-unknown"
10
10
11
- ; CHECK: DW_TAG_subprogram [9 ] *
11
+ ; CHECK: DW_TAG_subprogram [8 ] *
12
12
; CHECK-NOT: DW_AT_{{(MIPS_)?}}linkage_name
13
13
; CHECK: DW_AT_specification
14
14
You can’t perform that action at this time.
0 commit comments