[TableGen] Use ListSeparator (NFC)

This commit is contained in:
Kazu Hirata 2021-02-13 20:41:36 -08:00
parent efb1cb752b
commit d3c3045344
1 changed files with 3 additions and 6 deletions

View File

@ -3509,12 +3509,9 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
OS << '_' << MI->RequiredFeatures[i]->TheDef->getName();
OS << ", { ";
for (unsigned i = 0, e = MI->AsmOperands.size(); i != e; ++i) {
const MatchableInfo::AsmOperand &Op = MI->AsmOperands[i];
if (i) OS << ", ";
OS << Op.Class->Name;
}
ListSeparator LS;
for (const MatchableInfo::AsmOperand &Op : MI->AsmOperands)
OS << LS << Op.Class->Name;
OS << " }, },\n";
}