We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efb1cb7 commit d3c3045Copy full SHA for d3c3045
llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@ -3509,12 +3509,9 @@ void AsmMatcherEmitter::run(raw_ostream &OS) {
3509
OS << '_' << MI->RequiredFeatures[i]->TheDef->getName();
3510
3511
OS << ", { ";
3512
- for (unsigned i = 0, e = MI->AsmOperands.size(); i != e; ++i) {
3513
- const MatchableInfo::AsmOperand &Op = MI->AsmOperands[i];
3514
-
3515
- if (i) OS << ", ";
3516
- OS << Op.Class->Name;
3517
- }
+ ListSeparator LS;
+ for (const MatchableInfo::AsmOperand &Op : MI->AsmOperands)
+ OS << LS << Op.Class->Name;
3518
OS << " }, },\n";
3519
}
3520
0 commit comments