projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c18d928
)
[TableGen] Use range-based for loop.
author
Craig Topper
<craig.topper@gmail.com>
Sun, 16 Aug 2015 21:27:10 +0000
(21:27 +0000)
committer
Craig Topper
<craig.topper@gmail.com>
Sun, 16 Aug 2015 21:27:10 +0000
(21:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@245191
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/TableGen/AsmMatcherEmitter.cpp
patch
|
blob
|
history
diff --git
a/utils/TableGen/AsmMatcherEmitter.cpp
b/utils/TableGen/AsmMatcherEmitter.cpp
index 30dbb11b62ac21ef57d68e4b261bdc2eef18fab3..f0882500496c8f50ec9110601c8c09b8d9e89a37 100644
(file)
--- a/
utils/TableGen/AsmMatcherEmitter.cpp
+++ b/
utils/TableGen/AsmMatcherEmitter.cpp
@@
-1994,10
+1994,8
@@
static void emitConvertFuncs(CodeGenTarget &Target, StringRef ClassName,
// Output the instruction conversion kind enum.
OS << "enum InstructionConversionKind {\n";
- for (SetVector<std::string>::const_iterator
- i = InstructionConversionKinds.begin(),
- e = InstructionConversionKinds.end(); i != e; ++i)
- OS << " " << *i << ",\n";
+ for (const std::string &Signature : InstructionConversionKinds)
+ OS << " " << Signature << ",\n";
OS << " CVT_NUM_SIGNATURES\n";
OS << "};\n\n";