diff options
author | Sean Silva <chisophugis@gmail.com> | 2016-08-09 00:28:38 +0000 |
---|---|---|
committer | Sean Silva <chisophugis@gmail.com> | 2016-08-09 00:28:38 +0000 |
commit | 2fb9a987521a2fc89323f6079263701c304c8773 (patch) | |
tree | 07d1dee83e9af27b37bb9573f76544333d75c711 /lib/Transforms/Scalar/SCCP.cpp | |
parent | 20b343c051891a5e1902fa0aad839f3ab08396f5 (diff) |
Consistently use ModuleAnalysisManager
Besides a general consistently benefit, the extra layer of indirection
allows the mechanical part of https://reviews.llvm.org/D23256 that
requires touching every transformation and analysis to be factored out
cleanly.
Thanks to David for the suggestion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@278078 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SCCP.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SCCP.cpp b/lib/Transforms/Scalar/SCCP.cpp index 928a1780724..d068b15f263 100644 --- a/lib/Transforms/Scalar/SCCP.cpp +++ b/lib/Transforms/Scalar/SCCP.cpp @@ -1941,7 +1941,7 @@ static bool runIPSCCP(Module &M, const DataLayout &DL, return MadeChanges; } -PreservedAnalyses IPSCCPPass::run(Module &M, AnalysisManager<Module> &AM) { +PreservedAnalyses IPSCCPPass::run(Module &M, ModuleAnalysisManager &AM) { const DataLayout &DL = M.getDataLayout(); auto &TLI = AM.getResult<TargetLibraryAnalysis>(M); if (!runIPSCCP(M, DL, &TLI)) |