summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2016-09-28 21:00:58 +0000
committerDehao Chen <dehao@google.com>2016-09-28 21:00:58 +0000
commit5461d8bdb5acdc92e1f4c18c380a637d8d2be82e (patch)
treedff83a3a7e01a90fbf4fbe0c8ddae57812d1aa67 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parent6e4bedc0d7865d9afa36f31a12496a66238e8358 (diff)
downloadbcm5719-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/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/ModuleSummaryAnalysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
index c736c6aa169..5a9d9a6604f 100644
--- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
+++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
@@ -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) {
OpenPOWER on IntegriCloud