[llvm-dev] DW_TAG_subprogram in LLVM pass

Muhui Jiang via llvm-dev llvm-dev at lists.llvm.org
Sat Jul 28 22:31:56 PDT 2018


Hi

When I used the llvm-dwarfdump -debug-info to analysis the LLVM bitcode. I
could observe that different DW_TAG_subprogram may have different
attributes. For example, some DW_TAG_subprogram may have the DW_AT_low_pc
while others don't.

I want to write a LLVM pass to check whether a function has the debug
information, which means there is a DW_TAG_subprogram corresponding to the
function. If so, I want to check whether the subprogram contains the
attribute  like DW_AT_low_pc.

I guess the information may be obtained from the Function.getSubprogram().
But I didn't found the target API. Do you have any ideas? Many Thanks

Regards
Muhui
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20180729/931ada7b/attachment.html>


More information about the llvm-dev mailing list