[LLVMdev] llc and debug information

Duncan Sands baldrick at free.fr
Thu Sep 17 02:20:03 PDT 2009


Nick Jalbert wrote:
> Thanks for the quick responses, but unfortunately still no luck:
> 
>  > llvm-g++ -g -O0 -c -emit-llvm test.cpp
>  > llc -O0 test.o
>  > g++ test.o.s
>  > ./a.out 
> My return address is 0x400bb2
>  > addr2line 0x400bb2
> ??:0
> 
> Also to further implicate llc, this works:
> 
>  > llvm-g++ -g -O0 -S test.cpp 
>  > g++ test.s 
>  > ./a.out 
> My return address is 0x400bf9
>  > addr2line 0x400bf9
> /home/jalbert/llvmtest//test.cpp:13
> 
> Anymore thoughts?

maybe try passing -disable-fp-elim to llc?

Ciao,

Duncan.



More information about the llvm-dev mailing list