[llvm] 1caee67 - [MC][test] Add more .loc directives to improve portability with older zlib
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 22:33:14 PDT 2022
Author: Fangrui Song
Date: 2022-03-14T22:33:08-07:00
New Revision: 1caee67daca31ce4ca92bb435fd852e1b3d63eed
URL: https://github.com/llvm/llvm-project/commit/1caee67daca31ce4ca92bb435fd852e1b3d63eed
DIFF: https://github.com/llvm/llvm-project/commit/1caee67daca31ce4ca92bb435fd852e1b3d63eed.diff
LOG: [MC][test] Add more .loc directives to improve portability with older 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).
Added:
Modified:
llvm/test/MC/ELF/compression.s
Removed:
################################################################################
diff --git a/llvm/test/MC/ELF/compression.s b/llvm/test/MC/ELF/compression.s
index a4d3a003a2f2e..36f8bd80d5e8a 100644
--- a/llvm/test/MC/ELF/compression.s
+++ b/llvm/test/MC/ELF/compression.s
@@ -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
More information about the llvm-commits
mailing list