[LLVMdev] llvm debug information

Chris Lattner sabre at nondot.org
Wed Sep 13 17:36:56 PDT 2006


On Tue, 12 Sep 2006, Wei Jiang wrote:

>    According to the llvm docs, llvm will generate global variable 
>    information such as
>      llvm.dbg.global_variable.type which contains the line number and 
>    original name of global variables. But I tried on llvm-1.8 with -g, 
>    no such debug intrinsic functions are dumped, I only see some 
>    stoppoint, func.start. Are there any secrete options I should pass to 
>    llvm-gcc? Thanks.

llvm-gcc3 has very primitive support for debug info.  Make sure you're 
using llvm-gcc4.

-Chris

-- 
http://nondot.org/sabre/
http://llvm.org/



More information about the llvm-dev mailing list