[cfe-dev] about -g option

Devang Patel dpatel at apple.com
Mon Nov 22 07:57:33 PST 2010



On Nov 22, 2010, at 12:25 AM, 神奇 <tqfbee at gmail.com> wrote:

> Hi,
>     I am generating llvm IR code for C source code using clang as the front end. And I konw that using -g option I can
> get the source code line number. However ,I get some problem while using llvm-gcc -g.
>    If I have a c source file test.c ,I use the command "llvm-gcc -g -c -emit-llvm test.c -o test.bc". And after that I use
>  the command "lli test.bc". It will failed. If I use the command without the -g option ,it will run. Why?

What is the failure? Please file bugzilla report with a reproducible test case.

Devang
>   Thanks!
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20101122/daf3e2b1/attachment.html>


More information about the cfe-dev mailing list