MIR Parser: make the machine instruction parsing interface more consistent. NFC.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2015 17:47:50 +0000 (17:47 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 30 Jun 2015 17:47:50 +0000 (17:47 +0000)
commit939f023bf9548a58412326e7466db6962713347a
treeac59dbbafba8ee24635c923ce6809e0b1ed77b47
parent8f1e30d67ce713c4f94f13a9764b59c05fefb90d
MIR Parser: make the machine instruction parsing interface more consistent. NFC.

This commit refactors the interface for machine instruction parser. It adopts
the pattern of returning a bool and passing in the result in the first argument
that is used by the other parsing methods for the the method 'parse' and the
function 'parseMachineInstr'.

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