[PATCH] D11003: Tolerate DWARF compile unit without filename.
Paul Robinson
Paul_Robinson at playstation.sony.com
Tue Jul 7 15:58:26 PDT 2015
In http://reviews.llvm.org/D11003#200766, @clayborg wrote:
> DWARF has the notion in its line tables that the primary source file is the first one in the file list of the line table prologue.
I had thought so too, but looking in the specs I don't see any language to confirm that. In fact DWARF 4 added explicit language that the primary file is the one whose name matches DW_AT_name from the comp unit. The order in the line table's file list is not specified.
I expect it's _common_ to put the primary file first, but DWARF does not specify that.
http://reviews.llvm.org/D11003
More information about the llvm-commits
mailing list