[llvm-commits] PATCH: Improve getSubprogramName in llvmDebugInfo lib

Alexey Samsonov samsonov at google.com
Tue Jul 17 07:53:58 PDT 2012


Hi!

This patch improves the behavior of
DebugInfoEntryMinimal::getSubprogramName() introduced in r159512.
To fetch a subprogram name we should not only inspect the DIE for this
subprogram, but optionally inspect
its specification, or its abstract origin (even if there is no inlining),
or even specification of an abstract origin.
New test case checks that llvm-dwarfdump is able to correctly detect
function name in the latter case.

Code review: http://codereview.appspot.com/6409051/

-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120717/8fda4da8/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: issue6409051_1.diff
Type: application/octet-stream
Size: 5065 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120717/8fda4da8/attachment.obj>


More information about the llvm-commits mailing list