forked from OSchip/llvm-project
[mlir] Use `interleave` in `printOperands` (NFC)
Instead of reimplementing it. Reviewed By: rriddle Differential Revision: https://reviews.llvm.org/D134904
This commit is contained in:
parent
3840e960ba
commit
5e82120e68
|
@ -356,13 +356,8 @@ public:
|
|||
/// Print a comma separated list of operands.
|
||||
template <typename IteratorType>
|
||||
void printOperands(IteratorType it, IteratorType end) {
|
||||
if (it == end)
|
||||
return;
|
||||
printOperand(*it);
|
||||
for (++it; it != end; ++it) {
|
||||
getStream() << ", ";
|
||||
printOperand(*it);
|
||||
}
|
||||
llvm::interleaveComma(llvm::make_range(it, end), getStream(),
|
||||
[this](Value value) { printOperand(value); });
|
||||
}
|
||||
|
||||
/// Print the given successor.
|
||||
|
|
Loading…
Reference in New Issue