llvm-project
6a7fa57a - [DWARFLinker] List the empty directory in a DWARF 5 type unit (#247761)

Commit
5 hours ago
[DWARFLinker] List the empty directory in a DWARF 5 type unit (#247761) A file with an absolute name has no directory. The type unit gave such a file directory index 0 without adding a directory. That is right before DWARF 5, where index 0 is the compilation directory and is not listed. A DWARF 5 table lists every directory, so when all files were absolute the table had none and could not be parsed: ``` warning: parsing line table prologue at 0x00000000 found an invalid directory or file table description at 0x0000001f error: DIE has DW_AT_decl_file with an invalid file index 0 (the file table in the prologue is empty) ``` Add the empty directory to a DWARF 5 table like any other. rdar://184768136 Assisted-by: Claude
Author
Parents
Loading