getting source-level debug info

Hello,

I have a problem getting source-level debug info using Clang and LLVM 2.9 libraries. I compile the code with -g and -O3 (or even -O1) and I’m receiving the following error:

LLVM ERROR: Code generator does not support intrinsic function ‘llvm.dbg.value’!
make: *** [all] Error 1

Which I found is in IntrinsicLowering.cpp and that’s because there isn’t any case for llvm.dbg.value.
I want to ask if I’m missing something ?

Thank you.

Hello,

I have a problem getting source-level debug info using Clang and LLVM 2.9
libraries.

2.9 is a rather old release in our time frame - and essentially
unsupported. Someone might know something about this, but there's a
fair chance if anyone on the project knew we've long since forgotten.