[llvm] r313578 - Replace for_each with a range-based for. NFC.
Adrian Prantl via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 18 15:11:34 PDT 2017
Author: adrian
Date: Mon Sep 18 15:11:33 2017
New Revision: 313578
URL: http://llvm.org/viewvc/llvm-project?rev=313578&view=rev
Log:
Replace for_each with a range-based for. NFC.
Modified:
llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
Modified: llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp?rev=313578&r1=313577&r2=313578&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp (original)
+++ llvm/trunk/tools/llvm-dwarfdump/llvm-dwarfdump.cpp Mon Sep 18 15:11:33 2017
@@ -352,11 +352,9 @@ int main(int argc, char **argv) {
return handleFile(Object, verifyObjectFile);
}))
exit(1);
- } else {
- std::for_each(Objects.begin(), Objects.end(), [](std::string Object) {
+ } else
+ for (auto Object : Objects)
handleFile(Object, dumpObjectFile);
- });
- }
return EXIT_SUCCESS;
}
More information about the llvm-commits
mailing list