diff options
author | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2022-11-14 23:15:19 +0000 |
---|---|---|
committer | Alexander Shaposhnikov <ashaposhnikov@google.com> | 2022-11-14 23:24:08 +0000 |
commit | bf8381a8bce28fc69857645cc7e84a72317e693e (patch) | |
tree | 1d9da80180bf8d062246bbdb15016c8f6ab5c87a /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 2d9d805c74fcde1906c7ad1d949f5136e777c0f3 (diff) | |
download | llvm-bf8381a8bce28fc69857645cc7e84a72317e693e.zip llvm-bf8381a8bce28fc69857645cc7e84a72317e693e.tar.gz llvm-bf8381a8bce28fc69857645cc7e84a72317e693e.tar.bz2 |
[opt][clang] Enable using -module-summary/-flto=thin with -S/-emit-llvm
Enable using -module-summary with -S
(similarly to what currently can be achieved with opt <input> -o - | llvm-dis).
This is a recommit of ef9e62469.
Test plan: ninja check-all
Differential revision: https://reviews.llvm.org/D137768
Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp index 52827c2..14fe6324 100644 --- a/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp +++ b/llvm/lib/Analysis/ModuleSummaryAnalysis.cpp @@ -880,8 +880,6 @@ ModuleSummaryIndex llvm::buildModuleSummaryIndex( return Index; } -AnalysisKey ModuleSummaryIndexAnalysis::Key; - ModuleSummaryIndex ModuleSummaryIndexAnalysis::run(Module &M, ModuleAnalysisManager &AM) { ProfileSummaryInfo &PSI = AM.getResult<ProfileSummaryAnalysis>(M); |