diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-15 04:54:21 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-15 04:54:21 +0000 |
commit | 531f9e92d4d06d5cb1f250754c68e7d3b420df50 (patch) | |
tree | 741411707d21f866eb629b2449413d85b8b48667 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 5ce25cdc6d8d274d9106280d861adaf4743e5f3d (diff) | |
download | bcm5719-llvm-531f9e92d4d06d5cb1f250754c68e7d3b420df50.tar.gz bcm5719-llvm-531f9e92d4d06d5cb1f250754c68e7d3b420df50.zip |
This mega patch converts us from using Function::a{iterator|begin|end} to
using Function::arg_{iterator|begin|end}. Likewise Module::g* -> Module::global_*.
This patch is contributed by Gabor Greif, thanks!
llvm-svn: 20597
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index f594827a8ea..05134019aa4 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -494,7 +494,7 @@ void ExecutionEngine::emitGlobals() { // Loop over all of the global variables in the program, allocating the memory // to hold them. - for (Module::const_giterator I = getModule().gbegin(), E = getModule().gend(); + for (Module::const_global_iterator I = getModule().global_begin(), E = getModule().global_end(); I != E; ++I) if (!I->isExternal()) { // Get the type of the global... @@ -518,7 +518,7 @@ void ExecutionEngine::emitGlobals() { // Now that all of the globals are set up in memory, loop through them all and // initialize their contents. - for (Module::const_giterator I = getModule().gbegin(), E = getModule().gend(); + for (Module::const_global_iterator I = getModule().global_begin(), E = getModule().global_end(); I != E; ++I) if (!I->isExternal()) EmitGlobalVariable(I); |