[PATCH] D59553: [LLD][ELF][DebugInfo] llvm-symbolizer shows incorrect source line info if --gc-sections used
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 22 03:49:27 PDT 2019
jhenderson added inline comments.
================
Comment at: lld/test/ELF/gc-sections-debuginfo.s:34
+# CHECK-NEXT: SectionData (
+# CHECK64-NEXT: 0000: FEFFFFFF FFFFFFFF |
+# CHECK32-NEXT: 0000: FEFFFFFF |
----------------
grimar wrote:
> Please remove the spaces after `...FFF` and `|` symbol, no need to test we print it here.
It's worth noting that unless you are using FileCheck's --strict-whitespace, then all contiguous runs of whitespace, both in the pattern and the output, are treated as a single space, so this extra spacing has no effect currently either. If you want to be sure that the number ends when it does, with not output afterwards, you can also do something like `FFFF{{ }}` or `FFFF{{$}}` which will check that a space or end of line respectively follows immediately.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59553/new/
https://reviews.llvm.org/D59553
More information about the llvm-commits
mailing list