[PATCH] D26567: Improve DWARF parsing speed by improving DWARFAbbreviationDeclaration

Paul Robinson via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 09:20:35 PST 2016


probinson added a comment.

If the abbrev table is shared across units, then what you are doing makes more sense.  Actually I just found where DWARF explicitly allows sharing abbrev tables (DWARF 4 section 7.5).  I don't know that the committee explicitly intended sharing across 32-bit and 64-bit units, but it's not forbidden.  So, my intuition was wrong. :-)

DWARF requires that 32-bit and 64-bit formats are not intermixed in the same compilation unit.  (DWARF 4 section 7.4 p.142.)  I take this to mean things like the .debug_info and .debug_line contributions for the same CU must use the same format. However different CUs can use different formats within the same program.


https://reviews.llvm.org/D26567





More information about the llvm-commits mailing list