1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

[TableGen] Use ListSeparator (NFC)

This commit is contained in:
Kazu Hirata 2021-01-30 09:53:38 -08:00
parent 422ddd21c3
commit a19c13eefd

View File

@ -2883,14 +2883,10 @@ static void emitCustomOperandParsing(raw_ostream &OS, CodeGenTarget &Target,
OS << OMI.OperandMask;
OS << " /* ";
bool printComma = false;
ListSeparator LS;
for (int i = 0, e = 31; i !=e; ++i)
if (OMI.OperandMask & (1 << i)) {
if (printComma)
OS << ", ";
OS << i;
printComma = true;
}
if (OMI.OperandMask & (1 << i))
OS << LS << i;
OS << " */, ";
OS << OMI.CI->Name;