[PATCH] D143513: [DebugInfo] Allow parsing line tables aligned to 4 or 8-byte boundaries

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 8 13:29:21 PST 2023


MaskRay added inline comments.


================
Comment at: llvm/test/tools/llvm-dwarfdump/ARM/aligned_line_tables.s:24
+// First line table
+.long 35        // Unit total length
+.short 2        // Version
----------------
Replace the magic number with a label difference.

You can define two temporary labels `.L` and use a subtraction. See how Clang generates the section.


================
Comment at: llvm/test/tools/llvm-dwarfdump/ARM/aligned_line_tables.s:26
+.short 2        // Version
+.long 26        // Header length
+.byte 4         // Min instruction length
----------------
Use a label difference.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143513/new/

https://reviews.llvm.org/D143513



More information about the llvm-commits mailing list