[LLVMdev] Line number information (and other metadata)

David Given dg at cowlark.com
Thu Sep 2 03:27:41 PDT 2010


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?

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 262 bytes
Desc: OpenPGP digital signature
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100902/2057fb84/attachment.sig>


More information about the llvm-dev mailing list