OSDN Git Service

[Assembler] Improve diagnostics for inline assembly.
authorSanne Wouda <sanne.wouda@arm.com>
Mon, 13 Feb 2017 13:58:00 +0000 (13:58 +0000)
committerSanne Wouda <sanne.wouda@arm.com>
Mon, 13 Feb 2017 13:58:00 +0000 (13:58 +0000)
commit083bd6368afd2365848d7f54c111b92d4ee8b9a2
tree40f4a188a1c21c645ff792f12c71f172ae546468
parent43efaf2951cf0d1a8fa8957c8eaed20a6f744401
[Assembler] Improve diagnostics for inline assembly.

Summary:
Keep a vector of LocInfos around; one for each call to EmitInlineAsm.
Since each call to EmitInlineAsm creates a new buffer in the inline asm
SourceMgr, we can use the buffer number to map to the right LocInfo.

Reviewers: rengolin, grosbach, rnk, echristo

Reviewed By: rnk

Subscribers: mehdi_amini, llvm-commits

Differential Revision: https://reviews.llvm.org/D29769

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@294947 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/AsmPrinter.h
lib/CodeGen/AsmPrinter/AsmPrinterInlineAsm.cpp