mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
[TableGen] Use ListSeparator (NFC)
This commit is contained in:
parent
fd0f322cf0
commit
d66c382a33
@ -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";
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user