Add AnalysisResolver_New. It is a replacement for existing
[oota-llvm.git] / lib / VMCore / PassManager.cpp
index 25e8cbff421fcd9b96bcab87efd17a6936108ff8..3fd2103007addf718b423db2da1c40ab87ae0242 100644 (file)
@@ -675,6 +675,14 @@ Pass *PMDataManager::findAnalysisPass(AnalysisID AID, bool SearchParent) {
   return P;
 }
 
+
+//===----------------------------------------------------------------------===//
+// NOTE: Is this the right place to define this method ?
+// getAnalysisToUpdate - Return an analysis result or null if it doesn't exist
+Pass *AnalysisResolver_New::getAnalysisToUpdate(AnalysisID ID, bool dir) const {
+  return PM.findAnalysisPass(ID, dir);
+}
+
 //===----------------------------------------------------------------------===//
 // BasicBlockPassManager_New implementation