diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-21 17:08:37 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-21 17:08:37 +0000 |
commit | fb30fda1de96251017ae092f469de4b290b6b61b (patch) | |
tree | 26d2a47477e66df7b20cf4969b6c8c8b35b6e8b5 /include/llvm/PassAnalysisSupport.h | |
parent | 7742799a80cec572fec56d50ed4039fc73754f90 (diff) | |
download | external_llvm-fb30fda1de96251017ae092f469de4b290b6b61b.zip external_llvm-fb30fda1de96251017ae092f469de4b290b6b61b.tar.gz external_llvm-fb30fda1de96251017ae092f469de4b290b6b61b.tar.bz2 |
- Eliminate the need for analyses to expose an ::ID member.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3414 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassAnalysisSupport.h')
-rw-r--r-- | include/llvm/PassAnalysisSupport.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/PassAnalysisSupport.h b/include/llvm/PassAnalysisSupport.h index f04b4a6..43c353d 100644 --- a/include/llvm/PassAnalysisSupport.h +++ b/include/llvm/PassAnalysisSupport.h @@ -39,7 +39,7 @@ public: } template<class PassClass> AnalysisUsage &addRequired() { - Required.push_back(PassClass::ID); + Required.push_back(Pass::getClassPassInfo<PassClass>()); return *this; } @@ -53,7 +53,7 @@ public: template<class PassClass> AnalysisUsage &addPreserved() { - Preserved.push_back(PassClass::ID); + Preserved.push_back(Pass::getClassPassInfo<PassClass>()); return *this; } |