Skip to content

Commit a17480d

Browse files
author
George Rimar
committedOct 24, 2017
[llvm-dwarfdump] - Cleanup of gnu_call_site.s. NFC.
This change fixes values of test so that it passes -verify without errors and also adds comments. Test was introduced in D39119 and intention was to check that tool is able to dump few DW_*GNU_call_site* tags and attributes, so that change is NFC cleanup. llvm-svn: 316428
1 parent ce76ea0 commit a17480d

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed
 

‎llvm/test/tools/llvm-dwarfdump/X86/gnu_call_site.s

+34-31
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# CHECK: DW_TAG_subprogram
55
# CHECK-NEXT: DW_AT_external (true)
66
# CHECK-NEXT: DW_AT_name ("fn4")
7-
# CHECK-NEXT: DW_AT_linkage_name ()
7+
# CHECK-NEXT: DW_AT_linkage_name ("test")
88
# CHECK-NEXT: DW_AT_low_pc (0x0000000000000000)
99
# CHECK-NEXT: DW_AT_high_pc (0x00000000)
1010
# CHECK-NEXT: DW_AT_frame_base (DW_OP_call_frame_cfa)
1111
# CHECK-NEXT: DW_AT_GNU_all_call_sites (true)
1212

1313
# CHECK: DW_TAG_GNU_call_site
1414
# CHECK-NEXT: DW_AT_low_pc (0x0000000000000000)
15-
# CHECK-NEXT: DW_AT_abstract_origin (cu + 0x0001)
15+
# CHECK-NEXT: DW_AT_abstract_origin (cu + 0x0021 "test")
1616

1717
# CHECK: DW_TAG_GNU_call_site_parameter
1818
# CHECK-NEXT: DW_AT_location (DW_OP_reg0 EAX)
@@ -31,7 +31,6 @@
3131
.long 0
3232
.long 0
3333
.long 0
34-
.long 0
3534

3635
.uleb128 0xe # DW_TAG_subprogram [14]
3736
.string "fn4"
@@ -43,7 +42,7 @@
4342

4443
.uleb128 0x12 # DW_TAG_GNU_call_site [18]
4544
.long 0x0
46-
.long 0x1
45+
.long 0x21
4746

4847
.uleb128 0x13 # DW_TAG_GNU_call_site_parameter [19]
4948
.uleb128 0x1
@@ -55,64 +54,68 @@
5554
.byte 0
5655
.byte 0
5756

57+
.byte 0
58+
.byte 0
59+
5860
.section .debug_abbrev,"",@progbits
5961
.uleb128 0x1
60-
.uleb128 0x11
61-
.byte 0x1 # [1]
62-
.uleb128 0x25
62+
.uleb128 0x11 # DW_TAG_compile_unit, DW_CHILDREN_yes
63+
.byte 0x1
64+
.uleb128 0x25 # DW_AT_producer, DW_FORM_strp
6365
.uleb128 0xe
64-
.uleb128 0x13
66+
.uleb128 0x13 # DW_AT_language, DW_FORM_data1
6567
.uleb128 0xb
66-
.uleb128 0x3
68+
.uleb128 0x3 # DW_AT_name, DW_FORM_strp
6769
.uleb128 0xe
68-
.uleb128 0x1b
70+
.uleb128 0x1b # DW_AT_comp_dir, DW_FORM_strp
6971
.uleb128 0xe
70-
.uleb128 0x11
72+
.uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
7173
.uleb128 0x1
72-
.uleb128 0x12
74+
.uleb128 0x12 # DW_AT_high_pc, DW_FORM_data4
7375
.uleb128 0x6
74-
.uleb128 0x10
75-
.uleb128 0x17
7676
.byte 0
7777
.byte 0
7878

79-
.uleb128 0xe # [14]
80-
.uleb128 0x2e
79+
.uleb128 0xe # [14]
80+
.uleb128 0x2e # DW_TAG_subprogram, DW_CHILDREN_yes
8181
.byte 0x1
82-
.uleb128 0x3f
82+
.uleb128 0x3f # DW_AT_external, DW_FORM_flag_present
8383
.uleb128 0x19
84-
.uleb128 0x3
84+
.uleb128 0x3 # DW_AT_name, DW_FORM_string
8585
.uleb128 0x8
86-
.uleb128 0x6e
86+
.uleb128 0x6e # DW_AT_linkage_name, DW_FORM_strp
8787
.uleb128 0xe
88-
.uleb128 0x11
88+
.uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
8989
.uleb128 0x1
90-
.uleb128 0x12
90+
.uleb128 0x12 # DW_AT_high_pc, DW_FORM_data4
9191
.uleb128 0x6
92-
.uleb128 0x40
92+
.uleb128 0x40 # DW_AT_frame_base, DW_FORM_exprloc
9393
.uleb128 0x18
94-
.uleb128 0x2117
94+
.uleb128 0x2117 # DW_AT_GNU_all_call_sites, DW_FORM_flag_present
9595
.uleb128 0x19
9696
.byte 0
9797
.byte 0
9898

99-
.uleb128 0x12 # [18]
100-
.uleb128 0x4109
99+
.uleb128 0x12 # [18]
100+
.uleb128 0x4109 # DW_TAG_GNU_call_site, DW_CHILDREN_yes
101101
.byte 0x1
102-
.uleb128 0x11
102+
.uleb128 0x11 # DW_AT_low_pc, DW_FORM_addr
103103
.uleb128 0x1
104-
.uleb128 0x31
104+
.uleb128 0x31 # DW_AT_abstract_origin, DW_FORM_ref4
105105
.uleb128 0x13
106106
.byte 0
107107
.byte 0
108108

109-
.uleb128 0x13 # [19]
110-
.uleb128 0x410a
109+
.uleb128 0x13 # [19]
110+
.uleb128 0x410a # DW_TAG_GNU_call_site_parameter, DW_CHILDREN_no
111111
.byte 0
112-
.uleb128 0x2
112+
.uleb128 0x2 # DW_AT_location, DW_FORM_exprloc
113113
.uleb128 0x18
114-
.uleb128 0x2111
114+
.uleb128 0x2111 # DW_AT_GNU_call_site_value, DW_FORM_exprloc
115115
.uleb128 0x18
116116
.byte 0
117117
.byte 0
118118
.byte 0
119+
120+
.section .debug_str,"MS",@progbits,1
121+
.string "test"

0 commit comments

Comments
 (0)
Please sign in to comment.