[LLVMdev] Newbie Question: not using local variables

Devang Patel dpatel at apple.com
Tue Feb 8 10:44:00 PST 2011


On Feb 7, 2011, at 10:05 PM, Ben Karel wrote:

> Also, IIRC debug metadata must be attached to stack slots.

FWIW this is was true in past but not strictly true anymore, though it is a road less travelled at -O0. One would normally use @llvm.dbg.declare intrinsic to map variable info with the stack slots. Now, you can use @llvm.dbg.value intrinsic to map variable info with a llvm register.

-
Devang



More information about the llvm-dev mailing list