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
This commit is contained in:
@@ -228,7 +228,7 @@ ModuleSummaryIndexWrapperPass::ModuleSummaryIndexWrapperPass()
|
||||
}
|
||||
|
||||
bool ModuleSummaryIndexWrapperPass::runOnModule(Module &M) {
|
||||
auto &PSI = *getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI(M);
|
||||
auto &PSI = *getAnalysis<ProfileSummaryInfoWrapperPass>().getPSI();
|
||||
Index = buildModuleSummaryIndex(
|
||||
M,
|
||||
[this](const Function &F) {
|
||||
|
||||
Reference in New Issue
Block a user