diff options
author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-13 18:11:02 +0000 |
---|---|---|
committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | 2015-10-13 18:11:02 +0000 |
commit | 4ead920ce50a6a27d29dfe3a82e1480286a667cc (patch) | |
tree | 7e6fbb121320d8bed9a4393e51edaf5fa9b02f1b /llvm/lib/ExecutionEngine/ExecutionEngine.cpp | |
parent | 1275bffa965e1a3c6e31dce0e93bb834c579592e (diff) | |
download | bcm5719-llvm-4ead920ce50a6a27d29dfe3a82e1480286a667cc.tar.gz bcm5719-llvm-4ead920ce50a6a27d29dfe3a82e1480286a667cc.zip |
ExecutionEngine: Remove implicit ilist iterator conversions, NFC
llvm-svn: 250193
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r-- | llvm/lib/ExecutionEngine/ExecutionEngine.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp index cd62525122c..41c8da40346 100644 --- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp +++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp @@ -237,11 +237,10 @@ void ExecutionEngine::clearAllGlobalMappings() { void ExecutionEngine::clearGlobalMappingsFromModule(Module *M) { MutexGuard locked(lock); - for (Module::iterator FI = M->begin(), FE = M->end(); FI != FE; ++FI) - EEState.RemoveMapping(getMangledName(FI)); - for (Module::global_iterator GI = M->global_begin(), GE = M->global_end(); - GI != GE; ++GI) - EEState.RemoveMapping(getMangledName(GI)); + for (Function &FI : *M) + EEState.RemoveMapping(getMangledName(&FI)); + for (GlobalVariable &GI : M->globals()) + EEState.RemoveMapping(getMangledName(&GI)); } uint64_t ExecutionEngine::updateGlobalMapping(const GlobalValue *GV, |