xref: /llvm-project/bolt/test/X86/Inputs/dwarf5-debug-line-not-modified-helper-variable.s (revision 66e943b1a9751db1611f6ba07e4c46899455d686)
1# int Foo = 0;
2
3	.text
4	.file	"helperVariable.cpp"
5	.file	0 "/test" "helperVariable.cpp" md5 0xb6e6130198b21a44b5db4247fccb359d
6	.type	Foo,@object                     # @Foo
7	.bss
8	.globl	Foo
9	.p2align	2, 0x0
10Foo:
11	.long	0                               # 0x0
12	.size	Foo, 4
13
14	.section	.debug_abbrev,"",@progbits
15	.byte	1                               # Abbreviation Code
16	.byte	17                              # DW_TAG_compile_unit
17	.byte	1                               # DW_CHILDREN_yes
18	.byte	37                              # DW_AT_producer
19	.byte	37                              # DW_FORM_strx1
20	.byte	19                              # DW_AT_language
21	.byte	5                               # DW_FORM_data2
22	.byte	3                               # DW_AT_name
23	.byte	37                              # DW_FORM_strx1
24	.byte	114                             # DW_AT_str_offsets_base
25	.byte	23                              # DW_FORM_sec_offset
26	.byte	16                              # DW_AT_stmt_list
27	.byte	23                              # DW_FORM_sec_offset
28	.byte	27                              # DW_AT_comp_dir
29	.byte	37                              # DW_FORM_strx1
30	.byte	115                             # DW_AT_addr_base
31	.byte	23                              # DW_FORM_sec_offset
32	.byte	0                               # EOM(1)
33	.byte	0                               # EOM(2)
34	.byte	2                               # Abbreviation Code
35	.byte	52                              # DW_TAG_variable
36	.byte	0                               # DW_CHILDREN_no
37	.byte	3                               # DW_AT_name
38	.byte	37                              # DW_FORM_strx1
39	.byte	73                              # DW_AT_type
40	.byte	19                              # DW_FORM_ref4
41	.byte	63                              # DW_AT_external
42	.byte	25                              # DW_FORM_flag_present
43	.byte	58                              # DW_AT_decl_file
44	.byte	11                              # DW_FORM_data1
45	.byte	59                              # DW_AT_decl_line
46	.byte	11                              # DW_FORM_data1
47	.byte	2                               # DW_AT_location
48	.byte	24                              # DW_FORM_exprloc
49	.byte	0                               # EOM(1)
50	.byte	0                               # EOM(2)
51	.byte	3                               # Abbreviation Code
52	.byte	36                              # DW_TAG_base_type
53	.byte	0                               # DW_CHILDREN_no
54	.byte	3                               # DW_AT_name
55	.byte	37                              # DW_FORM_strx1
56	.byte	62                              # DW_AT_encoding
57	.byte	11                              # DW_FORM_data1
58	.byte	11                              # DW_AT_byte_size
59	.byte	11                              # DW_FORM_data1
60	.byte	0                               # EOM(1)
61	.byte	0                               # EOM(2)
62	.byte	0                               # EOM(3)
63	.section	.debug_info,"",@progbits
64.Lcu_begin0:
65	.long	.Ldebug_info_end0-.Ldebug_info_start0 # Length of Unit
66.Ldebug_info_start0:
67	.short	5                               # DWARF version number
68	.byte	1                               # DWARF Unit Type
69	.byte	8                               # Address Size (in bytes)
70	.long	.debug_abbrev                   # Offset Into Abbrev. Section
71	.byte	1                               # Abbrev [1] 0xc:0x22 DW_TAG_compile_unit
72	.byte	0                               # DW_AT_producer
73	.short	33                              # DW_AT_language
74	.byte	1                               # DW_AT_name
75	.long	.Lstr_offsets_base0             # DW_AT_str_offsets_base
76	.long	.Lline_table_start0             # DW_AT_stmt_list
77	.byte	2                               # DW_AT_comp_dir
78	.long	.Laddr_table_base0              # DW_AT_addr_base
79	.byte	2                               # Abbrev [2] 0x1e:0xb DW_TAG_variable
80	.byte	3                               # DW_AT_name
81	.long	41                              # DW_AT_type
82                                        # DW_AT_external
83	.byte	0                               # DW_AT_decl_file
84	.byte	1                               # DW_AT_decl_line
85	.byte	2                               # DW_AT_location
86	.byte	161
87	.byte	0
88	.byte	3                               # Abbrev [3] 0x29:0x4 DW_TAG_base_type
89	.byte	4                               # DW_AT_name
90	.byte	5                               # DW_AT_encoding
91	.byte	4                               # DW_AT_byte_size
92	.byte	0                               # End Of Children Mark
93.Ldebug_info_end0:
94	.section	.debug_str_offsets,"",@progbits
95	.long	24                              # Length of String Offsets Set
96	.short	5
97	.short	0
98.Lstr_offsets_base0:
99	.section	.debug_str,"MS",@progbits,1
100.Linfo_string0:
101	.asciz	"clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)" # string offset=0
102.Linfo_string1:
103	.asciz	"helperVariable.cpp"            # string offset=105
104.Linfo_string2:
105	.asciz	"/test" # string offset=124
106.Linfo_string3:
107	.asciz	"Foo"                           # string offset=162
108.Linfo_string4:
109	.asciz	"int"                           # string offset=166
110	.section	.debug_str_offsets,"",@progbits
111	.long	.Linfo_string0
112	.long	.Linfo_string1
113	.long	.Linfo_string2
114	.long	.Linfo_string3
115	.long	.Linfo_string4
116	.section	.debug_addr,"",@progbits
117	.long	.Ldebug_addr_end0-.Ldebug_addr_start0 # Length of contribution
118.Ldebug_addr_start0:
119	.short	5                               # DWARF version number
120	.byte	8                               # Address size
121	.byte	0                               # Segment selector size
122.Laddr_table_base0:
123	.quad	Foo
124.Ldebug_addr_end0:
125	.ident	"clang version 17.0.0 (https://github.com/llvm/llvm-project.git 640e07c49037cca41a1bfbeb916b569d8c950aea)"
126	.section	".note.GNU-stack","",@progbits
127	.addrsig
128	.section	.debug_line,"",@progbits
129.Lline_table_start0:
130