[llvm-commits] CVS: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 27 11:06:23 PST 2005
Changes in directory llvm/lib/ExecutionEngine:
ExecutionEngine.cpp updated: 1.65 -> 1.66
---
Log message:
Use const iterators where possible. Patch by Evan Jones!
---
Diffs of the changes: (+2 -2)
ExecutionEngine.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff -u llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.65 llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.66
--- llvm/lib/ExecutionEngine/ExecutionEngine.cpp:1.65 Wed Feb 2 14:50:50 2005
+++ llvm/lib/ExecutionEngine/ExecutionEngine.cpp Sun Feb 27 13:06:10 2005
@@ -494,7 +494,7 @@
// Loop over all of the global variables in the program, allocating the memory
// to hold them.
- for (Module::giterator I = getModule().gbegin(), E = getModule().gend();
+ for (Module::const_giterator I = getModule().gbegin(), E = getModule().gend();
I != E; ++I)
if (!I->isExternal()) {
// Get the type of the global...
@@ -518,7 +518,7 @@
// Now that all of the globals are set up in memory, loop through them all and
// initialize their contents.
- for (Module::giterator I = getModule().gbegin(), E = getModule().gend();
+ for (Module::const_giterator I = getModule().gbegin(), E = getModule().gend();
I != E; ++I)
if (!I->isExternal())
EmitGlobalVariable(I);
More information about the llvm-commits
mailing list