aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2022-11-14 15:51:03 -0800
committerFangrui Song <i@maskray.me>2022-11-14 15:51:03 -0800
commit77bf0df376d7fcd305d9576511e7d0806b96971a (patch)
tree483cfc400a061a683257efc26f4cc33027a299d4 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
parentbf8381a8bce28fc69857645cc7e84a72317e693e (diff)
downloadllvm-77bf0df376d7fcd305d9576511e7d0806b96971a.zip
llvm-77bf0df376d7fcd305d9576511e7d0806b96971a.tar.gz
llvm-77bf0df376d7fcd305d9576511e7d0806b96971a.tar.bz2
Revert "[opt][clang] Enable using -module-summary/-flto=thin with -S/-emit-llvm"
This reverts commit bf8381a8bce28fc69857645cc7e84a72317e693e. There is a layering violation: LLVMAnalysis depends on LLVMCore, so LLVMCore should not include LLVMAnalysis header llvm/Analysis/ModuleSummaryAnalysis.h
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r--llvm/lib/Analysis/ModuleSummaryAnalysis.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
index 14fe6324..52827c2 100644
--- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
+++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp
@@ -880,6 +880,8 @@ ModuleSummaryIndex llvm::buildModuleSummaryIndex(
return Index;
}
+AnalysisKey ModuleSummaryIndexAnalysis::Key;
+
ModuleSummaryIndex
ModuleSummaryIndexAnalysis::run(Module &M, ModuleAnalysisManager &AM) {
ProfileSummaryInfo &PSI = AM.getResult<ProfileSummaryAnalysis>(M);