MIR Parser: wrap 'MBBSlots' from the MI parsing functions in a struct. NFC.
authorAlex Lorenz <arphaman@gmail.com>
Tue, 7 Jul 2015 17:46:43 +0000 (17:46 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Tue, 7 Jul 2015 17:46:43 +0000 (17:46 +0000)
commitddc6f0a433f47aa04007621c1df7fee509a48794
treecc459483ef80a1837718af3a514f90d65a5df63b
parent7b7c81cd3533354301ac471426d6d157aa2166c8
MIR Parser: wrap 'MBBSlots' from the MI parsing functions in a struct. NFC.

This commit modifies the interface for the machine instruction parsing
functions by wrapping the parameter 'MBBSlots' in a new structure called
'PerFunctionMIParsingState'. This change is useful as in the future I will be
able to pass new parameters to the machine instruction parser just by modifying
the 'PerFunctionMIParsingState' structure instead of adding a new parameter to
each function.

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