add a helper method.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94012 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2010-01-20 19:25:45 +00:00
parent b0bedd6ebb
commit 61186cd3a3

View File

@ -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.
///