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

[SCEV] Use ListSeparator (NFC)

This commit is contained in:
Kazu Hirata 2021-02-16 23:23:05 -08:00
parent c2ccde3171
commit 62d0340f62

View File

@ -321,12 +321,9 @@ void SCEV::print(raw_ostream &OS) const {
llvm_unreachable("There are no other nary expression types.");
}
OS << "(";
for (SCEVNAryExpr::op_iterator I = NAry->op_begin(), E = NAry->op_end();
I != E; ++I) {
OS << **I;
if (std::next(I) != E)
OS << OpStr;
}
ListSeparator LS(OpStr);
for (const SCEV *Op : NAry->operands())
OS << LS << *Op;
OS << ")";
switch (NAry->getSCEVType()) {
case scAddExpr: