MIR Parser: Use correct source locations for machine instruction diagnostics.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 23 Jun 2015 22:39:23 +0000 (22:39 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 23 Jun 2015 22:39:23 +0000 (22:39 +0000)
commit926d65d4f7b9f525658f1ed5b519ec3abd814807
tree6749791e245ffb8e6fb205773c33a0f5bf1e5d0d
parentd621812aace417eb21a940119443bc02eeaa93cf
MIR Parser: Use correct source locations for machine instruction diagnostics.

This commit translates the source locations for MIParser diagnostics from
the locations in the machine instruction string to the locations in the
MIR file.

Reviewers: Duncan P. N. Exon Smith

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240474 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MIRYamlMapping.h
lib/CodeGen/MIRParser/MIRParser.cpp
test/CodeGen/MIR/X86/expected-machine-operand.mir
test/CodeGen/MIR/X86/missing-comma.mir
test/CodeGen/MIR/X86/missing-instruction.mir
test/CodeGen/MIR/X86/unknown-instruction.mir
test/CodeGen/MIR/X86/unknown-register.mir
test/CodeGen/MIR/X86/unrecognized-character.mir