[PATCH] D38125: [dwarfdump] Add support for redirecting output to a file
David Blaikie via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 21 17:41:29 PDT 2017
dblaikie added inline comments.
================
Comment at: tools/llvm-dwarfdump/llvm-dwarfdump.cpp:371
// If we encountered errors during verify, exit with a non-zero exit status.
- if (!std::all_of(Objects.begin(), Objects.end(), [](std::string Object) {
- return handleFile(Object, verifyObjectFile);
+ if (!std::all_of(Objects.begin(), Objects.end(), [&OS](std::string Object) {
+ return handleFile(Object, verifyObjectFile, OS);
----------------
Just capture all by reference for locally scoped lambdas
Repository:
rL LLVM
https://reviews.llvm.org/D38125
More information about the llvm-commits
mailing list