[LLVMdev] debugging llvm

David Chisnall David.Chisnall at cl.cam.ac.uk
Thu Feb 13 05:10:45 PST 2014


On 13 Feb 2014, at 12:53, Sam Parker <S.Parker3 at lboro.ac.uk> wrote:

> I'm currently porting my code from 3.2 to 3.4 and I'm having trouble getting
> debug info out. I used to be able to pass -debug to llc to get all the
> information I needed, and the documentation stills states this is the case,
> however my build does not seem to accept that option. I have a Debug build,
> so what else am I missing?

There is (was?) a bug in the CMake build that still adds -DNDEBUG when doing a debug build.  Adding -UNDEBUG to the CXXFLAGS fixes it.

David





More information about the llvm-dev mailing list