[llvm-dev] print signature of function from dwarf info in file?

incertia via llvm-dev llvm-dev at lists.llvm.org
Thu Apr 5 13:29:36 PDT 2018


>From my understanding, the LLVM classes are just representing the DWARF
information without doing any extra work, so I am afraid that you will
have to explicitly chase through all the DWARF information yourself.

On 4/5/2018 3:22 PM, Bill O'Hara via llvm-dev wrote:
> Hi
> 
> I'm using llvm-5. Browsing the source of llvm-dwarfdump and trying it on
> some shared libraries, I see I can print the debug info (assuming it
> exists). For some function, I'm wondering if there's a short cut to
> prettyprinting the signature of a function in the library? I think,
> looking at the output, that enough information exists but it seems to
> involve looking at the subprogram and then chasing references to
> parameters elsewhere in the debug info and so on.
> 
> Browsing the llvm headers, I see classes like DISubprogram which appear
> to represent a function. But no obvious way to get to a string for the
> function signature.
> 
> Can someone point me in the right direction?
> 
> TIA!
> bill
> 
> 
> 
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
> 

-- 
Will


More information about the llvm-dev mailing list