diff options
| author | Dehao Chen <dehao@google.com> | 2016-09-28 21:00:58 +0000 |
|---|---|---|
| committer | Dehao Chen <dehao@google.com> | 2016-09-28 21:00:58 +0000 |
| commit | 5461d8bdb5acdc92e1f4c18c380a637d8d2be82e (patch) | |
| tree | dff83a3a7e01a90fbf4fbe0c8ddae57812d1aa67 /llvm/lib/LTO | |
| parent | 6e4bedc0d7865d9afa36f31a12496a66238e8358 (diff) | |
| download | bcm5719-llvm-5461d8bdb5acdc92e1f4c18c380a637d8d2be82e.tar.gz bcm5719-llvm-5461d8bdb5acdc92e1f4c18c380a637d8d2be82e.zip | |
Refactor the ProfileSummaryInfo to use doInitialization and doFinalization to handle Module update.
Summary: This refactors the change in r282616
Reviewers: davidxl, eraman, mehdi_amini
Subscribers: mehdi_amini, davide, llvm-commits
Differential Revision: https://reviews.llvm.org/D25041
llvm-svn: 282630
Diffstat (limited to 'llvm/lib/LTO')
| -rw-r--r-- | llvm/lib/LTO/ThinLTOCodeGenerator.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp index 49b73e117d9..f4232dc2f89 100644 --- a/llvm/lib/LTO/ThinLTOCodeGenerator.cpp +++ b/llvm/lib/LTO/ThinLTOCodeGenerator.cpp @@ -378,7 +378,7 @@ ProcessThinLTOModule(Module &TheModule, ModuleSummaryIndex &Index, SmallVector<char, 128> OutputBuffer; { raw_svector_ostream OS(OutputBuffer); - ProfileSummaryInfo PSI(&TheModule); + ProfileSummaryInfo PSI(TheModule); auto Index = buildModuleSummaryIndex(TheModule, nullptr, nullptr); WriteBitcodeToFile(&TheModule, OS, true, &Index); } |

