From 6e1c09263f66ebf0146f0e528b854ba87aa05ea2 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Thu, 18 Feb 2021 22:46:39 -0800 Subject: [PATCH] [TableGen] Use ListSeparator (NFC) --- utils/TableGen/DFAEmitter.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/utils/TableGen/DFAEmitter.cpp b/utils/TableGen/DFAEmitter.cpp index 781cb0636fa..a5cba0486da 100644 --- a/utils/TableGen/DFAEmitter.cpp +++ b/utils/TableGen/DFAEmitter.cpp @@ -376,11 +376,9 @@ void CustomDfaEmitter::printActionValue(action_type A, raw_ostream &OS) { const ActionTuple &AT = Actions[A]; if (AT.size() > 1) OS << "std::make_tuple("; - bool First = true; + ListSeparator LS; for (const auto &SingleAction : AT) { - if (!First) - OS << ", "; - First = false; + OS << LS; SingleAction.print(OS); } if (AT.size() > 1)