summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorDevang Patel <dpatel@apple.com>2006-12-09 00:09:12 +0000
committerDevang Patel <dpatel@apple.com>2006-12-09 00:09:12 +0000
commit9d759b8854858c33ca97d641b49c6ba76557bf0a (patch)
tree5d583b991a3c256c0b9dc0cc377c8d3bd0d72604 /llvm/lib
parent64619bec140750b8981becd16f4eadd2fc437954 (diff)
downloadbcm5719-llvm-9d759b8854858c33ca97d641b49c6ba76557bf0a.tar.gz
bcm5719-llvm-9d759b8854858c33ca97d641b49c6ba76557bf0a.zip
Top level pass manager keeps track of other managers, so this can be
removed now. llvm-svn: 32388
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/PassManager.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/VMCore/PassManager.cpp b/llvm/lib/VMCore/PassManager.cpp
index 20925c80d4a..e085bf57ed0 100644
--- a/llvm/lib/VMCore/PassManager.cpp
+++ b/llvm/lib/VMCore/PassManager.cpp
@@ -693,14 +693,7 @@ Pass *PMDataManager::findAnalysisPass(AnalysisID AID, bool SearchParent) {
if (SearchParent)
return TPM->findAnalysisPass(AID);
- // FIXME : This is expensive and requires. Need to check only managers not all passes.
- // One solution is to collect managers in advance at TPM level.
- Pass *P = NULL;
- for(std::vector<Pass *>::iterator I = passVectorBegin(),
- E = passVectorEnd(); P == NULL && I!= E; ++I ) {
- P = (*I)->getResolver()->getAnalysisToUpdate(AID, false /* Do not search parents again */);
- }
- return P;
+ return NULL;
}
OpenPOWER on IntegriCloud