aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/TableGen/X86DisassemblerTables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/utils/TableGen/X86DisassemblerTables.cpp')
-rw-r--r--llvm/utils/TableGen/X86DisassemblerTables.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/utils/TableGen/X86DisassemblerTables.cpp b/llvm/utils/TableGen/X86DisassemblerTables.cpp
index 36f752a..3c422a3 100644
--- a/llvm/utils/TableGen/X86DisassemblerTables.cpp
+++ b/llvm/utils/TableGen/X86DisassemblerTables.cpp
@@ -882,9 +882,9 @@ void DisassemblerTables::emitInstructionInfo(raw_ostream &o,
N = ++OperandSetNum;
o << " { /* " << (OperandSetNum - 1) << " */\n";
- for (unsigned i = 0, e = OperandList.size(); i != e; ++i) {
- const char *Encoding = stringForOperandEncoding(OperandList[i].first);
- const char *Type = stringForOperandType(OperandList[i].second);
+ for (const auto &[Enc, Ty] : OperandList) {
+ const char *Encoding = stringForOperandEncoding(Enc);
+ const char *Type = stringForOperandType(Ty);
o << " { " << Encoding << ", " << Type << " },\n";
}
o << " },\n";