summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR
diff options
context:
space:
mode:
authorSean Silva <chisophugis@gmail.com>2016-08-09 00:28:38 +0000
committerSean Silva <chisophugis@gmail.com>2016-08-09 00:28:38 +0000
commitfd03ac6a0c7e2092ae9c0a05f229a1a2dd4608ae (patch)
tree04a054e45872e5025f52ff4074e14ddcbbedba5c /llvm/lib/IR
parent36e0d01e13b32bf318139fd8c43849af7a0e13cc (diff)
downloadbcm5719-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/IR')
-rw-r--r--llvm/lib/IR/IRPrintingPasses.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/IRPrintingPasses.cpp b/llvm/lib/IR/IRPrintingPasses.cpp
index 4ee4f1f5ac8..05e206cfd6c 100644
--- a/llvm/lib/IR/IRPrintingPasses.cpp
+++ b/llvm/lib/IR/IRPrintingPasses.cpp
@@ -26,7 +26,7 @@ PrintModulePass::PrintModulePass(raw_ostream &OS, const std::string &Banner,
: OS(OS), Banner(Banner),
ShouldPreserveUseListOrder(ShouldPreserveUseListOrder) {}
-PreservedAnalyses PrintModulePass::run(Module &M, AnalysisManager<Module> &) {
+PreservedAnalyses PrintModulePass::run(Module &M, ModuleAnalysisManager &) {
OS << Banner;
if (llvm::isFunctionInPrintList("*"))
M.print(OS, nullptr, ShouldPreserveUseListOrder);
OpenPOWER on IntegriCloud