[LLVMdev] DIBuilder not filling in references to compilation unit?
arcata at gmail.com
Wed Dec 28 20:12:13 PST 2011
(Sorry, mail client totally destroyed that last message. Trying again.)
Hi everybody. I'm trying to use DIBuilder to emit debug information, but in
the generated metadata, it appears that references to the compilation unit
are being left null. The llvm.dbg.sp node also fails to get generated.
Other than these missing pieces, the metadata looks otherwise correct. I am
calling DIBuilder::finalize. When I try to inspect variables in GDB, it
(gdb) print x
Unable to access variable "x"
$1 = <variable optimized away by compiler>
This ring any bells with anyone? Let me know if you need more information.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev