[llvm-commits] [patch] Use .loc in codegen

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Nov 16 21:13:17 PST 2010


The attached patch changes CodeGen to use .loc directives. This has
many advantages. First:

 7 files changed, 37 insertions(+), 319 deletions(-)

Second, the output is a lot more readable and testing is easier.  A
good example is the unknown-location.ll test that now can just look
for ".loc 1 0 0".  And finally, we don't use a DW_LNE_set_address for
every address change.

I did some basic checking that the debug output is correct. Tomorrow I
will try to do a debug bootstrap with this patch.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: loc.patch
Type: text/x-patch
Size: 9294 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101117/4443f038/attachment.bin>


More information about the llvm-commits mailing list