Skip to content

Commit

Permalink
[MC][test] Add more .loc directives to improve portability with older…
Browse files Browse the repository at this point in the history
… zlib

Make .debug_line so larger so that MC will more assuredly compress .debug_line
(it doesn't compress a section if compressed content is not smaller).
  • Loading branch information
MaskRay committed Mar 15, 2022
1 parent 2ef95ef commit 1caee67
Showing 1 changed file with 6 additions and 20 deletions.
26 changes: 6 additions & 20 deletions llvm/test/MC/ELF/compression.s
Expand Up @@ -143,26 +143,12 @@ foo:
.endr

# pad out the line table to make sure it's big enough to warrant compression
.loc 1 2 1
nop
.loc 1 3 2
nop
.loc 1 4 1
nop
.loc 1 5 2
nop
.loc 1 6 1
nop
.loc 1 7 2
nop
.loc 1 8 1
nop
.loc 1 9 2
nop
.loc 1 10 1
nop
.loc 1 11 2
nop
.irpc i, 123456789
.irpc j, 0123456789
.loc 1 \i\j \j
nop
.endr
.endr
.cfi_endproc
.cfi_sections .debug_frame

Expand Down

0 comments on commit 1caee67

Please sign in to comment.