[llvm-commits] [llvm] r94012 - /llvm/trunk/include/llvm/PassSupport.h
Chris Lattner
sabre at nondot.org
Wed Jan 20 11:25:46 PST 2010
Author: lattner
Date: Wed Jan 20 13:25:45 2010
New Revision: 94012
URL: http://llvm.org/viewvc/llvm-project?rev=94012&view=rev
Log:
add a helper method.
Modified:
llvm/trunk/include/llvm/PassSupport.h
Modified: llvm/trunk/include/llvm/PassSupport.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/PassSupport.h?rev=94012&r1=94011&r2=94012&view=diff
==============================================================================
--- llvm/trunk/include/llvm/PassSupport.h (original)
+++ llvm/trunk/include/llvm/PassSupport.h Wed Jan 20 13:25:45 2010
@@ -82,6 +82,11 @@
/// 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.
///
More information about the llvm-commits
mailing list