[llvm-commits] [llvm] r144095 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp

Eric Christopher echristo at apple.com
Tue Nov 8 10:22:25 PST 2011


Author: echristo
Date: Tue Nov  8 12:22:25 2011
New Revision: 144095

URL: http://llvm.org/viewvc/llvm-project?rev=144095&view=rev
Log:
Don't evaluate Data.size() on every iteration.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp?rev=144095&r1=144094&r2=144095&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfAccelTable.cpp Tue Nov  8 12:22:25 2011
@@ -43,7 +43,7 @@
 }
 
 DwarfAccelTable::~DwarfAccelTable() {
-  for (size_t i = 0 ; i < Data.size(); ++i)
+  for (size_t i = 0, e = Data.size() ; i < e; ++i)
     delete Data[i];
 }
 





More information about the llvm-commits mailing list