[LLVMdev] Getting address of label in jitted code.

Mark Shannon marks at dcs.gla.ac.uk
Thu Jan 22 03:45:43 PST 2009


Hi,

I need to get the address of a label in jitted code.
(This is so that I can insert a jump into the machine code to resume interpretation from compiled code)

I've tried using gcc's address of labels, but llvm just gives meaningless integers, not real addresses.
I've had a look at llvm.dbg.stoppoint, but I don't see where the address actually get stored and the docs are really out of date.

Any guidance on this?

Mark

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 2609 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090122/6a8d7485/attachment.bin>


More information about the llvm-dev mailing list