summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-20 19:25:45 +0000
committerChris Lattner <sabre@nondot.org>2010-01-20 19:25:45 +0000
commit54a070b1070a7cbfeaf142d72b144d6449d6f0c6 (patch)
tree85b844488d03328cae1a76b257889ea96c58efed /llvm
parentadc1c56e497d2de642c5762bc8a745f9e6c413ae (diff)
downloadbcm5719-llvm-54a070b1070a7cbfeaf142d72b144d6449d6f0c6.tar.gz
bcm5719-llvm-54a070b1070a7cbfeaf142d72b144d6449d6f0c6.zip
add a helper method.
llvm-svn: 94012
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/PassSupport.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/PassSupport.h b/llvm/include/llvm/PassSupport.h
index d7f3097bdc8..b2299898532 100644
--- a/llvm/include/llvm/PassSupport.h
+++ b/llvm/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.
///
OpenPOWER on IntegriCloud