diff options
Diffstat (limited to 'llvm/lib/IR/LegacyPassManager.cpp')
-rw-r--r-- | llvm/lib/IR/LegacyPassManager.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/LegacyPassManager.cpp b/llvm/lib/IR/LegacyPassManager.cpp index c8f1606..1d9a61c 100644 --- a/llvm/lib/IR/LegacyPassManager.cpp +++ b/llvm/lib/IR/LegacyPassManager.cpp @@ -120,7 +120,7 @@ void PMDataManager::emitInstrCountChangedRemark( // If no function was passed in, then we're either a module pass or an // CGSCC pass. if (!CouldOnlyImpactOneFunction) - std::for_each(M.begin(), M.end(), UpdateFunctionChanges); + llvm::for_each(M, UpdateFunctionChanges); else UpdateFunctionChanges(*F); @@ -197,9 +197,7 @@ void PMDataManager::emitInstrCountChangedRemark( // Are we looking at more than one function? If so, emit remarks for all of // the functions in the module. Otherwise, only emit one remark. if (!CouldOnlyImpactOneFunction) - std::for_each(FunctionToInstrCount.keys().begin(), - FunctionToInstrCount.keys().end(), - EmitFunctionSizeChangedRemark); + llvm::for_each(FunctionToInstrCount.keys(), EmitFunctionSizeChangedRemark); else EmitFunctionSizeChangedRemark(F->getName().str()); } |