[llvm] [MC] Optimize loops in MC. (PR #98114)
Dmitriy Chestnykh via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 8 23:59:04 PDT 2024
================
@@ -1385,23 +1385,25 @@ void XCOFFObjectWriter::addExceptionEntry(
unsigned XCOFFObjectWriter::getExceptionSectionSize() {
unsigned EntryNum = 0;
- for (auto it = ExceptionSection.ExceptionTable.begin();
- it != ExceptionSection.ExceptionTable.end(); ++it)
+ for (auto I = ExceptionSection.ExceptionTable.begin(),
----------------
chestnykh wrote:
Rewritten to `for_each`
https://github.com/llvm/llvm-project/pull/98114
More information about the llvm-commits
mailing list