[LLVMdev] Line number information (and other metadata)

Devang Patel dpatel at apple.com
Thu Sep 2 11:23:00 PDT 2010


On Sep 2, 2010, at 3:27 AM, David Given wrote:

> I'd like my compiler to emit proper line number information. The docs
> talk about Instruction::setDebugLoc(), but that method doesn't actually
> have to be in my 2.7 LLVM Debian package. What's the correct way of
> doing this?

Which docs are you referring here ?
> 
> In addition, can anyone point me at an example of how to emit a comment
> attached to an instruction (or function)?
> 
> -- 
> ┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
>> │ life←{ ↑1 ⍵∨.^3 4=+/,¯1 0 1∘.⊖¯1 0 1∘.⌽⊂⍵ }
> │ --- Conway's Game Of Life, in one line of APL
> 
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev





More information about the llvm-dev mailing list