Skip to content

Commit 0a7e048

Browse files
authored
[BOLT][DWARF][NFC] Minimize dwarf5-debug-names-gnu-push-tls-address.s (#120103)
Removed unnecessary parts from the .text section.
1 parent ef31141 commit 0a7e048

File tree

1 file changed

+13
-49
lines changed

1 file changed

+13
-49
lines changed

bolt/test/X86/dwarf5-debug-names-gnu-push-tls-address.s

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -27,71 +27,35 @@
2727
## x = 10;
2828
## return x;
2929
## }
30-
.text
3130
.file "main.cpp"
3231
.file 0 "gnu_tls_push" "main.cpp" md5 0x551db97d5e23dc6a81abdc5ade4d9d71
33-
.globl main # -- Begin function main
34-
.p2align 4, 0x90
32+
.globl main
3533
.type main,@function
36-
main: # @main
34+
main:
3735
.Lfunc_begin0:
38-
.loc 0 2 0 # main.cpp:2:0
39-
.cfi_startproc
40-
# %bb.0: # %entry
41-
pushq %rbp
42-
.cfi_def_cfa_offset 16
43-
.cfi_offset %rbp, -16
44-
movq %rsp, %rbp
45-
.cfi_def_cfa_register %rbp
46-
movl $0, -4(%rbp)
47-
.Ltmp0:
48-
.loc 0 3 3 prologue_end # main.cpp:3:3
49-
movq %fs:0, %rax
50-
leaq x@TPOFF(%rax), %rax
51-
.loc 0 3 5 is_stmt 0 # main.cpp:3:5
52-
movl $10, (%rax)
53-
.loc 0 4 10 is_stmt 1 # main.cpp:4:10
54-
movq %fs:0, %rax
55-
leaq x@TPOFF(%rax), %rax
56-
movl (%rax), %eax
57-
.loc 0 4 3 epilogue_begin is_stmt 0 # main.cpp:4:3
58-
popq %rbp
59-
.cfi_def_cfa %rsp, 8
36+
.loc 0 2 0
37+
.loc 0 3 3 prologue_end
38+
.loc 0 3 5 is_stmt 0
39+
.loc 0 4 10 is_stmt 1
40+
.loc 0 4 3 epilogue_begin is_stmt 0
6041
retq
61-
.Ltmp1:
6242
.Lfunc_end0:
6343
.size main, .Lfunc_end0-main
64-
.cfi_endproc
65-
# -- End function
66-
.section .text._ZTW1x,"axG",@progbits,_ZTW1x,comdat
67-
.hidden _ZTW1x # -- Begin function _ZTW1x
44+
45+
.hidden _ZTW1x
6846
.weak _ZTW1x
69-
.p2align 4, 0x90
7047
.type _ZTW1x,@function
71-
_ZTW1x: # @_ZTW1x
48+
_ZTW1x:
7249
.Lfunc_begin1:
73-
.cfi_startproc
74-
# %bb.0:
75-
pushq %rbp
76-
.cfi_def_cfa_offset 16
77-
.cfi_offset %rbp, -16
78-
movq %rsp, %rbp
79-
.cfi_def_cfa_register %rbp
80-
movq %fs:0, %rax
81-
leaq x@TPOFF(%rax), %rax
82-
popq %rbp
83-
.cfi_def_cfa %rsp, 8
8450
retq
8551
.Lfunc_end1:
8652
.size _ZTW1x, .Lfunc_end1-_ZTW1x
87-
.cfi_endproc
88-
# -- End function
89-
.type x,@object # @x
53+
54+
.type x,@object
9055
.section .tbss,"awT",@nobits
9156
.globl x
92-
.p2align 2, 0x0
9357
x:
94-
.long 0 # 0x0
58+
.long 0
9559
.size x, 4
9660

9761
.section .debug_abbrev,"",@progbits

0 commit comments

Comments
 (0)