add a helper method.
authorChris Lattner <sabre@nondot.org>
Wed, 20 Jan 2010 19:25:45 +0000 (19:25 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 20 Jan 2010 19:25:45 +0000 (19:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94012 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/PassSupport.h

index d7f3097bdc8c4fc508304ffdd2f7601a4f40943c..b22998985324f2e4c3785898223e993dca6104dd 100644 (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.
   ///