[PATCH] D34080: [ThinLTO] Add dump-summary command to llvm-lto2 tool
Davide Italiano via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 18 21:43:17 PDT 2017
davide added a comment.
Minor comment, LGTM with that (once your other patch goes in).
================
Comment at: tools/llvm-lto2/llvm-lto2.cpp:356-367
+static int dumpSummary(int argc, char **argv) {
+ for (StringRef F : make_range(argv + 1, argv + argc)) {
+ std::unique_ptr<MemoryBuffer> MB = check(MemoryBuffer::getFile(F), F);
+ std::unique_ptr<ModuleSummaryIndex> Index =
+ check(getModuleSummaryIndex(*MB), F);
+
+ yaml::Output Out(outs());
----------------
Add a comment to this function.
https://reviews.llvm.org/D34080
More information about the llvm-commits
mailing list