[llvm-commits] [llvm] r130409 - /llvm/trunk/lib/VMCore/AsmWriter.cpp

Chris Lattner clattner at apple.com
Mon May 23 12:18:30 PDT 2011


On May 23, 2011, at 9:58 AM, Devang Patel wrote:

>>> URL: http://llvm.org/viewvc/llvm-project?rev=130409&view=rev
>>> Log:
>>> Add command line option to print debug info in human readable form as comment in llvm IR output. This, i.e -enable-debug-info-comment,  is very useful if you want to easily find out which optimization pass is losing line number information.
>> 
>> Hi Devang, why don't you implement this as an AssemblyAnnotationWriter?  That's the entire point of having that API. :)
> 
> I did not find a way to use AssemblyAnnotationWriter from default AsmWriter such that I can have this info available @ gdb prompt. Thoughts ?

We don't have a great way to do that.  Please move it to an AssemblyAnnotationWriter so that it will be usable from llvm-dis, and then you can add a local change to your tree to make it more easily available in GDB.

-Chris



More information about the llvm-commits mailing list