mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-12 13:30:51 +00:00
Use range-based for loop.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224106 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3248223b66
commit
0ea6f98f9c
@ -555,8 +555,8 @@ int main(int argc, char **argv) {
|
||||
|
||||
if (OptLevelO1 || OptLevelO2 || OptLevelOs || OptLevelOz || OptLevelO3) {
|
||||
FPasses->doInitialization();
|
||||
for (Module::iterator F = M->begin(), E = M->end(); F != E; ++F)
|
||||
FPasses->run(*F);
|
||||
for (Function &F : *M)
|
||||
FPasses->run(F);
|
||||
FPasses->doFinalization();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user