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)
commit3708a641b691697463bfb12677e162010f07a548
treeb002453337cf3ffed913e5dc3e43d9fec6c0ae7b
parentc4bb47e301c4d4902f6ddf6d1ec92d2213d23095
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'.

llvm-svn: 241085
llvm/lib/CodeGen/MIRParser/MIParser.cpp
llvm/lib/CodeGen/MIRParser/MIParser.h
llvm/lib/CodeGen/MIRParser/MIRParser.cpp