[llvm-commits] [patch] Add an option for not using dwarf's .loc directive

Rafael EspĂ­ndola rafael.espindola at gmail.com
Thu Nov 18 10:59:27 PST 2010


Hello,

The attached patches are incomplete, but they should be sufficient to
fix the dawin 9 bots and better explain what I am doing. The idea is
that clang will continue to use .loc, but llvm-gcc will go back to
using a manually crafted .debug_line section.

Another option is to do it by target, but I assume you guys also want
the benefits of .loc on darwin when possible.

The patch is incomplete in that it has only the plumbing, but is
enough to disable .loc on llvm-gcc. It is also flexible if we want to
enable it in llvm-gcc for some targets but not others in the future.

The missing bit that I am working on right now is refactoring the MC
code a bit so that it can print the debug_line info a regular
streamer, not just an object streamer. If using an asm streamer it
will have the same limitation as the old code in CodeGen (using
DW_LNE_set_address), but at least there will not be as much code
duplication.

Are these first 3 patches OK?

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm.patch
Type: text/x-diff
Size: 10067 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101118/2fc0afe7/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang.patch
Type: text/x-diff
Size: 753 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101118/2fc0afe7/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-gcc.patch
Type: text/x-diff
Size: 476 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20101118/2fc0afe7/attachment-0002.patch>


More information about the llvm-commits mailing list