From 61186cd3a350b7dacac25552e658e7890062b917 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 20 Jan 2010 19:25:45 +0000 Subject: [PATCH] add a helper method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94012 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/PassSupport.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index d7f3097bdc8..b2299898532 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. /// -- 2.34.1