[llvm-commits] [patch] Remove what looks like dead code in the production of debug lines
rafael.espindola at gmail.com
Fri Nov 12 11:06:35 CST 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?
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3911 bytes
Desc: not available
Url : http://lists.cs.uiuc.edu/pipermail/llvm-commits/attachments/20101112/45d817b4/attachment.bin
More information about the llvm-commits