+ // getAnalysisToUpdate<AnalysisType>() - This function is used by subclasses
+ // to get to the analysis information that might be around that needs to be
+ // updated. This is different than getAnalysis in that it can fail (ie the
+ // analysis results haven't been computed), so should only be used if you
+ // provide the capability to update an analysis that exists.
+ //
+ template<typename AnalysisType>
+ AnalysisType *getAnalysisToUpdate(AnalysisID AID = AnalysisType::ID) {
+ assert(Resolver && "Pass not resident in a PassManager object!");
+ return (AnalysisType*)Resolver->getAnalysisToUpdate(AID);
+ }
+
+