Hi, 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? Thanks, Sam -- View this message in context: http://llvm.1065342.n5.nabble.com/debugging-llvm-tp65950.html Sent from the LLVM - Dev mailing list archive at Nabble.com.
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