projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0bedd6
)
add a helper method.
author
Chris Lattner
<sabre@nondot.org>
Wed, 20 Jan 2010 19:25:45 +0000
(19:25 +0000)
committer
Chris 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
patch
|
blob
|
history
diff --git
a/include/llvm/PassSupport.h
b/include/llvm/PassSupport.h
index d7f3097bdc8c4fc508304ffdd2f7601a4f40943c..b22998985324f2e4c3785898223e993dca6104dd 100644
(file)
--- 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.
///