[LLVMdev] [Debug Info PATCH] for support of ref_addr and removal of DIE duplication

Manman Ren manman.ren at gmail.com
Fri Oct 4 19:00:44 PDT 2013


Hi All,

The first patch adds support for ref_addr.
Most of it is from r176882, but instead of always using an integer for
ref_addr, we use label + offset for relocation on non-darwin platforms.

The second patch is a modified version of r191792.
The main change is to use a single map instead of 3 maps in DwarfDebug and
instead of calling DwarfDebug::getDIE|insertDIE directly, we delegate the
function calls to DwarfDebug from CompileUnit.

No testing case is added in the 1st patch, since the compiler does not use
ref_addr yet.

For the 2nd patch, testing cases are updated to make sure we remove
duplicated DIEs and use ref_addr to refer to the type DIE. A testing case
is also added to make sure we generate a relocation entry for ref_addr on
linux platform.

Thanks,
Manman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131004/11693025/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Debug-Info-support-for-DW_FORM_ref_addr.patch
Type: application/octet-stream
Size: 7495 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131004/11693025/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Debug-Info-remove-duplication-of-DIEs-when-a-DIE-is-.patch
Type: application/octet-stream
Size: 16637 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131004/11693025/attachment-0001.obj>


More information about the llvm-dev mailing list