[llvm-commits] PATCH: Fix DebugInfo codegen so that it doesn't duplicate debug info entries for variables in inlined functions (PR13202)

Alexey Samsonov samsonov at google.com
Fri Jun 29 10:24:41 PDT 2012


Hi!

DwarfDebug class can generate the same (inlined) DIVariable twice:
1) when trying to find abstract debug variable for a concrete inlined
instance
2) when explicitly collecting info for variables that were optimized out.

Duplicated DIEs for variables confuses e.g. gdb (it shows two identical
function arguments).
I've attached the proposed little patch and a testcase. Please take a look.

(more context - http://llvm.org/bugs/show_bug.cgi?id=13202)

-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120629/0e2f68cb/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: zdiff.inlined-vars
Type: application/octet-stream
Size: 4614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120629/0e2f68cb/attachment.obj>


More information about the llvm-commits mailing list