[LLVMdev] line number information
Jim Laskey
jlaskey at apple.com
Fri Apr 7 16:46:03 PDT 2006
If you use -g on the llvm gcc 4 command line and the C code gen from
llc (-march=c) you will get this feature for free.
Cheers,
-- Jim
On Apr 7, 2006, at 6:59 PM, John Trimble wrote:
> Is there a way, using llvm, to relate LLVM instructions to the
> souce code statements (or line numbers) that they were generated
> from. So if compile some file test.c and get some binary test.bc
> can I relate statements in test.bc with source code line numbers in
> test.c and if so how would I go about doing that. Thanks for your
> time.
>
> - John
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060407/fb862978/attachment.bin>
More information about the llvm-dev
mailing list