[LLVMdev] MCSymbol and DebugLoc

Devang Patel dpatel at apple.com
Mon Sep 13 10:53:45 PDT 2010


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





More information about the llvm-dev mailing list