Hi all, When emitting GC information, it can be very useful to emit the debug location of a GC point, represented as a MCSymbol. Infortunately I haven't found any API (JIT and codegen) where I can get from a MCSymbol to a DebugLoc. Does that interface exist? If not, I plan on committing a small change in the GC code where the debug location is passed to the constructor of a GC point. Patch attached. Cheers, Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100912/189a6d6a/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: gc.patch Type: application/octet-stream Size: 2504 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100912/189a6d6a/attachment.obj>
On Sep 12, 2010, at 9:44 AM, nicolas geoffray wrote:> Hi all, > > When emitting GC information, it can be very useful to emit the debug location of a GC point, represented as a MCSymbol. Infortunately I haven't found any API (JIT and codegen) where I can get from a MCSymbol to a DebugLoc. Does that interface exist? If not, I plan on committing a small change in the GC code where the debug location is passed to the constructor of a GC point. Patch attached.I do not know anything about GC support, however labels do not have location info but you may be able to use location of the first instruction after a label. Variables' debug info is handled separately. - Devang
Hi Devang, On Mon, Sep 13, 2010 at 7:53 PM, Devang Patel <dpatel at apple.com> wrote:> > > I do not know anything about GC support, however labels do not have > location info but you may be able to use location of the first instruction > after a label. Variables' debug info is handled separately. >I think that could work. Where is the API to get the first instruction after a label? Thanks, Nicolas> - > Devang > >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100913/287e7ebe/attachment.html>