[llvm] [MC] Optimize loops in MC. (PR #98114)

Sergei Barannikov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 00:52:46 PDT 2024


================
@@ -1385,23 +1385,23 @@ void XCOFFObjectWriter::addExceptionEntry(
 unsigned XCOFFObjectWriter::getExceptionSectionSize() {
   unsigned EntryNum = 0;
 
-  for (auto it = ExceptionSection.ExceptionTable.begin();
----------------
s-barannikov wrote:

Can this be range-based too?
Please restore the comment.


https://github.com/llvm/llvm-project/pull/98114


More information about the llvm-commits mailing list