1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +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."); llvm_unreachable("There are no other nary expression types.");
} }
OS << "("; OS << "(";
for (SCEVNAryExpr::op_iterator I = NAry->op_begin(), E = NAry->op_end(); ListSeparator LS(OpStr);
I != E; ++I) { for (const SCEV *Op : NAry->operands())
OS << **I; OS << LS << *Op;
if (std::next(I) != E)
OS << OpStr;
}
OS << ")"; OS << ")";
switch (NAry->getSCEVType()) { switch (NAry->getSCEVType()) {
case scAddExpr: case scAddExpr: