[llvm] 744a96a - [TableGen] Use ListSeparator (NFC)
Kazu Hirata via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 18 22:47:07 PST 2021
Author: Kazu Hirata
Date: 2021-02-18T22:46:39-08:00
New Revision: 744a96afed9edcfec6143113ef6a8e442989b667
URL: https://github.com/llvm/llvm-project/commit/744a96afed9edcfec6143113ef6a8e442989b667
DIFF: https://github.com/llvm/llvm-project/commit/744a96afed9edcfec6143113ef6a8e442989b667.diff
LOG: [TableGen] Use ListSeparator (NFC)
Added:
Modified:
llvm/utils/TableGen/DFAEmitter.cpp
Removed:
################################################################################
diff --git a/llvm/utils/TableGen/DFAEmitter.cpp b/llvm/utils/TableGen/DFAEmitter.cpp
index 781cb0636fa1..a5cba0486da5 100644
--- a/llvm/utils/TableGen/DFAEmitter.cpp
+++ b/llvm/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)
More information about the llvm-commits
mailing list