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 | fd03ac6a0c7e2092ae9c0a05f229a1a2dd4608ae (patch) | |
| tree | 04a054e45872e5025f52ff4074e14ddcbbedba5c /llvm/lib/Transforms/Scalar | |
| parent | 36e0d01e13b32bf318139fd8c43849af7a0e13cc (diff) | |
| download | bcm5719-llvm-fd03ac6a0c7e2092ae9c0a05f229a1a2dd4608ae.tar.gz bcm5719-llvm-fd03ac6a0c7e2092ae9c0a05f229a1a2dd4608ae.zip | |
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.
llvm-svn: 278078
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index 928a1780724..d068b15f263 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/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)) |

