diff options
author | Kazu Hirata <kazu@google.com> | 2021-02-10 20:01:21 -0800 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-02-10 20:01:22 -0800 |
commit | c5e90a8857549e4032b9a972cf74452ae12c6b25 (patch) | |
tree | 81b875718927c7f336cb9b3451a764bcd3e40f2c /llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp | |
parent | b16c6b2a83d9ba94cde7cc03dfea932077442859 (diff) | |
download | llvm-c5e90a8857549e4032b9a972cf74452ae12c6b25.zip llvm-c5e90a8857549e4032b9a972cf74452ae12c6b25.tar.gz llvm-c5e90a8857549e4032b9a972cf74452ae12c6b25.tar.bz2 |
[AsmPrinter] Use range-based for loops (NFC)
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp index 4e45a0f..dd98a65 100644 --- a/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/AccelTable.cpp @@ -327,9 +327,9 @@ void AppleAccelTableWriter::emitBuckets() const { void AppleAccelTableWriter::emitData() const { const auto &Buckets = Contents.getBuckets(); - for (size_t i = 0, e = Buckets.size(); i < e; ++i) { + for (const AccelTableBase::HashList &Bucket : Buckets) { uint64_t PrevHash = std::numeric_limits<uint64_t>::max(); - for (auto &Hash : Buckets[i]) { + for (auto &Hash : Bucket) { // Terminate the previous entry if there is no hash collision with the // current one. if (PrevHash != std::numeric_limits<uint64_t>::max() && @@ -346,7 +346,7 @@ void AppleAccelTableWriter::emitData() const { PrevHash = Hash->HashValue; } // Emit the final end marker for the bucket. - if (!Buckets[i].empty()) + if (!Bucket.empty()) Asm->emitInt32(0); } } |