<div dir="ltr">Hi<div><br></div><div>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.</div><div><br></div><div>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. </div><div><br></div><div>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</div><div><br></div><div>Regards</div><div>Muhui</div></div>