diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-20 19:25:45 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-20 19:25:45 +0000 |
commit | 61186cd3a350b7dacac25552e658e7890062b917 (patch) | |
tree | 00d5a1608e830d5659ebe63d30a432b9c0a22fb8 /include/llvm/PassSupport.h | |
parent | b0bedd6ebbbf0b9791291f37da5666dd456cf5b1 (diff) | |
download | llvm-61186cd3a350b7dacac25552e658e7890062b917.tar.gz llvm-61186cd3a350b7dacac25552e658e7890062b917.tar.bz2 llvm-61186cd3a350b7dacac25552e658e7890062b917.tar.xz |
add a helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94012 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassSupport.h')
-rw-r--r-- | include/llvm/PassSupport.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index d7f3097bdc..b229989853 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -82,6 +82,11 @@ public: /// TODO : Rename intptr_t getTypeInfo() const { return PassID; } + /// Return true if this PassID implements the specified ID pointer. + bool isPassID(void *IDPtr) const { + return PassID == (intptr_t)IDPtr; + } + /// isAnalysisGroup - Return true if this is an analysis group, not a normal /// pass. /// |