mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Use range loops and add missing braces.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
454c320c6e
commit
37780d81b1
@ -978,16 +978,16 @@ bool llvm::StripDebugInfo(Module &M) {
|
||||
}
|
||||
}
|
||||
|
||||
for (Module::iterator MI = M.begin(), ME = M.end(); MI != ME; ++MI)
|
||||
for (Function::iterator FI = MI->begin(), FE = MI->end(); FI != FE;
|
||||
++FI)
|
||||
for (BasicBlock::iterator BI = FI->begin(), BE = FI->end(); BI != BE;
|
||||
++BI) {
|
||||
if (BI->getDebugLoc()) {
|
||||
for (Function &F : M) {
|
||||
for (BasicBlock &BB : F) {
|
||||
for (Instruction &I : BB) {
|
||||
if (I.getDebugLoc()) {
|
||||
Changed = true;
|
||||
BI->setDebugLoc(DebugLoc());
|
||||
I.setDebugLoc(DebugLoc());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return Changed;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user