MIR Parser: refactor error reporting for machine instruction parser errors. NFC.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2015 17:55:00 +0000 (17:55 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2015 17:55:00 +0000 (17:55 +0000)
commit403c3312c3f87e8ef33e667c8029dbaa45ccf65c
treed9a9d29d1f9d1f445affa781acf114fc68bd92f4
parent939f023bf9548a58412326e7466db6962713347a
MIR Parser: refactor error reporting for machine instruction parser errors. NFC.

This commit extracts the code that reports an error that's produced by the
machine instruction parser into a new method that can be reused in other places.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241086 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MIRParser/MIRParser.cpp