[llvm-commits] [patch] Remove what looks like dead code in the production of debug lines
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Nov 12 09:06:35 PST 2010
The attached patch removes what looks like dead code for the case of
producing a .debug_line section with no entries. I think it is dead
because we only emit these tables if we found a line directive.
The gnu assembler has some strange logic on when it prints data to
these sections, but if it is forced to print an "empty" .debug_line
section, it stops after the header:
readelf -x .debug_line test-as.o
Hex dump of section '.debug_line':
0x00000000 19000000 02001300 00000101 fb0e0d00 ................
0x00000010 01010101 00000001 00000100 00 .............
Which is exactly what we would print with this patch.
Is it OK?
Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-diff
Size: 3912 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101112/45d817b4/attachment.patch>
More information about the llvm-commits
mailing list