[llvm] [DWARFYAML] Add support for v5 debug_line entry formats (PR #191358)
Pavel Labath via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 07:06:36 PDT 2026
================
@@ -20,6 +20,8 @@ DWARF:
LineBase: 1
LineRange: 14
OpcodeBase: 13
+ DirectoryEntryFormat:
+ FileNameEntryFormat:
----------------
labath wrote:
Zero values are already tested (the previous version of the code printed a hard-coded zero here -- mainly so I can confirm it works by piping the data to dwarfdump).
The way I think of this is that the first test is for the fixed components of the header, while the file/dir forms are tested in the next test (below). It's true that this doesn't check various endianness/address size versions, but I didn't find that particularly interesting to test as all of the values here are endian-independent (either 1-byte fields or ULEBs).
LMK what you think about that.
https://github.com/llvm/llvm-project/pull/191358
More information about the llvm-commits
mailing list