[llvm-commits] [llvm] r100607 - in /llvm/trunk: docs/LangRef.html lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp lib/CodeGen/SelectionDAG/InstrEmitter.cpp

Chris Lattner clattner at apple.com
Tue Apr 6 22:50:51 PDT 2010


On Apr 6, 2010, at 10:38 PM, Chris Lattner wrote:

> Author: lattner
> Date: Wed Apr  7 00:38:05 2010
> New Revision: 100607
> 
> URL: http://llvm.org/viewvc/llvm-project?rev=100607&view=rev
> Log:
> Have the inst emitter add the !srcloc mdnode to the machine instr.
> Have the asmprinter use the mdnode to scavenge a source location if
> present.  Document this nonsense in langref.

In case anyone is curious... with all this plumbing, clang can now produce diagnostics like this with the integrated assembler:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-1.png
Type: image/png
Size: 6691 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100406/4160cc1e/attachment.png>
-------------- next part --------------


Contrast this with:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-3.png
Type: image/png
Size: 8364 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20100406/4160cc1e/attachment-0001.png>
-------------- next part --------------


Woot,

-Chris


More information about the llvm-commits mailing list