MIR Serialization: use correct line and column numbers for LLVM IR errors.
authorAlex Lorenz <arphaman@gmail.com>
Fri, 29 May 2015 17:05:41 +0000 (17:05 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 29 May 2015 17:05:41 +0000 (17:05 +0000)
commit83d291ae8b4c941c3fb176c285f78d580085dbe4
tree725180d9a1f9e02f89e18668fb50a4a08e47b4ab
parent16e4a624c40596ae6f16ab15f0a9fb30f2fd4f2b
MIR Serialization: use correct line and column numbers for LLVM IR errors.

This commit translates the line and column numbers for LLVM IR
errors from the numbers in the YAML block scalar to the numbers
in the MIR file so that the MIRParser users can report LLVM IR
errors with the correct line and column numbers.

Reviewers: Duncan P. N. Exon Smith

Differential Revision: http://reviews.llvm.org/D10108

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238576 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MIRParser.cpp
test/CodeGen/MIR/llvm-ir-error-reported.mir [new file with mode: 0644]