[LLVMdev] generating !llvm.dbg.sp
Bendersky, Eli
eli.bendersky at intel.com
Mon Feb 13 01:41:36 PST 2012
Thanks. Note that there are still a few references to this MDNode scattered throughout the code-base, so if it's no longer being generated, there may be some bugs lurking there.
Eli
From: Devang Patel [mailto:dpatel at apple.com]
Sent: Thursday, February 09, 2012 19:36
To: Bendersky, Eli
Cc: llvmdev at cs.uiuc.edu
Subject: Re: generating !llvm.dbg.sp
On Feb 9, 2012, at 7:17 AM, "Bendersky, Eli" <eli.bendersky at intel.com<mailto:eli.bendersky at intel.com>> wrote:
Hello,
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.
-
Devang
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120213/f5512920/attachment.html>
More information about the llvm-dev
mailing list