projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
efb1cb7
)
[TableGen] Use ListSeparator (NFC)
author
Kazu Hirata
<kazu@google.com>
Sun, 14 Feb 2021 04:41:36 +0000
(20:41 -0800)
committer
Kazu Hirata
<kazu@google.com>
Sun, 14 Feb 2021 04:41:36 +0000
(20:41 -0800)
llvm/utils/TableGen/AsmMatcherEmitter.cpp
patch
|
blob
|
history
diff --git
a/llvm/utils/TableGen/AsmMatcherEmitter.cpp
b/llvm/utils/TableGen/AsmMatcherEmitter.cpp
index
147fd5c
..
e9aa9cd
100644
(file)
--- a/
llvm/utils/TableGen/AsmMatcherEmitter.cpp
+++ b/
llvm/utils/TableGen/AsmMatcherEmitter.cpp
@@
-3509,12
+3509,9
@@
void AsmMatcherEmitter::run(raw_ostream &OS) {
OS << '_' << MI->RequiredFeatures[i]->TheDef->getName();
OS << ", { ";
- for (unsigned i = 0, e = MI->AsmOperands.size(); i != e; ++i) {
- const MatchableInfo::AsmOperand &Op = MI->AsmOperands[i];
-
- if (i) OS << ", ";
- OS << Op.Class->Name;
- }
+ ListSeparator LS;
+ for (const MatchableInfo::AsmOperand &Op : MI->AsmOperands)
+ OS << LS << Op.Class->Name;
OS << " }, },\n";
}