[LLVMdev] generating !llvm.dbg.sp
dpatel at apple.com
Thu Feb 9 09:35:36 PST 2012
On Feb 9, 2012, at 7:17 AM, "Bendersky, Eli" <eli.bendersky at intel.com> wrote:
> According to the documentation here -http://llvm.org/docs/SourceLevelDebugging.html:
> >> All subprogram descriptors are collected by a named metadata!llvm.dbg.sp.
> LLVM seems to have lost the ability to generate this metadata node in r126871, when DIFactory was removed.
> Is this an intended change?
Yes, I'll update the doc.
> We were relying in the existence of this node, and things broke once we switched from LLVM 2.8 to 3.0.
> Is there an alternative location where all the subprogram debug descriptors (DW_TAG_subprogram) can be obtained?
You can use DebugInfoFinder from DebugInfo.h. It provides an iterator to walk over all subprograms.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev