[llvm-commits] CVS: llvm/include/llvm/Pass.h
Chris Lattner
lattner at cs.uiuc.edu
Fri Mar 21 15:42:01 PST 2003
Changes in directory llvm/include/llvm:
Pass.h updated: 1.30 -> 1.31
---
Log message:
Add helper method
---
Diffs of the changes:
Index: llvm/include/llvm/Pass.h
diff -u llvm/include/llvm/Pass.h:1.30 llvm/include/llvm/Pass.h:1.31
--- llvm/include/llvm/Pass.h:1.30 Wed Feb 26 13:10:28 2003
+++ llvm/include/llvm/Pass.h Fri Mar 21 15:40:53 2003
@@ -142,6 +142,14 @@
return dynamic_cast<AnalysisType*>(Resolver->getAnalysisToUpdate(PI));
}
+ /// mustPreserveAnalysisID - This method serves the same function as
+ /// getAnalysisToUpdate, but works if you just have an AnalysisID. This
+ /// obviously cannot give you a properly typed instance of the class if you
+ /// don't have the class name available (use getAnalysisToUpdate if you do),
+ /// but it can tell you if you need to preserve the pass at least.
+ ///
+ bool mustPreserveAnalysisID(const PassInfo *AnalysisID) const;
+
/// getAnalysis<AnalysisType>() - This function is used by subclasses to get
/// to the analysis information that they claim to use by overriding the
/// getAnalysisUsage function.
More information about the llvm-commits
mailing list