diff options
author | Devang Patel <dpatel@apple.com> | 2007-04-16 20:56:24 +0000 |
---|---|---|
committer | Devang Patel <dpatel@apple.com> | 2007-04-16 20:56:24 +0000 |
commit | 6b1df0e863963929634d769f39cbce68f030f051 (patch) | |
tree | e0c76edf16eff026234e0aa3495a18eb63d82f18 /include/llvm/Pass.h | |
parent | f4bd76a035f7d85a576c75c7680ed6baddc74674 (diff) | |
download | external_llvm-6b1df0e863963929634d769f39cbce68f030f051.zip external_llvm-6b1df0e863963929634d769f39cbce68f030f051.tar.gz external_llvm-6b1df0e863963929634d769f39cbce68f030f051.tar.bz2 |
Proivde getAnalysis<FPAnalysis>(Func) support.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36159 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r-- | include/llvm/Pass.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index cef4501..5dd3dba 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -197,8 +197,13 @@ public: AnalysisType &getAnalysis() const; // Defined in PassAnalysisSupport.h template<typename AnalysisType> + AnalysisType &getAnalysis(Function &F); // Defined in PassanalysisSupport.h + + template<typename AnalysisType> AnalysisType &getAnalysisID(const PassInfo *PI) const; + template<typename AnalysisType> + AnalysisType &getAnalysisID(const PassInfo *PI, Function &F); }; inline std::ostream &operator<<(std::ostream &OS, const Pass &P) { |