[PATCH] D49493: [DebugInfo] Reduce debug_str_offsets section size

Pavel Labath via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 20 09:13:00 PDT 2018


labath added inline comments.


================
Comment at: test/DebugInfo/X86/string-offsets-table-order.ll:28-31
+; CHECK: 0x00000008: 00000000 "foo.dwo"
+; CHECK: 0x0000000c: [[X3]] "X3"
+; CHECK: 0x00000010: [[X2]] "X2"
+; CHECK: 0x00000014: [[X1]] "X1"
----------------
dblaikie wrote:
> Rather than hardcoding these particular byte offset prefixes (honestly, probably not necessary for the dumper to dump these except in the most verbose modes maybe) - but use CHECK-NEXT instead, to ensure these are the only 4 strings (CHECK something at the end to ensure that's the end of the list - though I realize the "contribution size" validates that, but again, probably easier not to check for that specific value (easier to update the test with new strings if it's just checking for the specific elements in a list, without checking offsets, sizes, etc)
I've updated this a bit, though I'm not sure I did exactly what you wanted. PTAL.


Repository:
  rL LLVM

https://reviews.llvm.org/D49493





More information about the llvm-commits mailing list