diff options
author | Chris Lattner <sabre@nondot.org> | 2010-01-22 04:55:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-01-22 04:55:08 +0000 |
commit | 5e664b8f7c5ba877058a3a1cdfcce8e6b7388a6a (patch) | |
tree | d53bc415ff6069a1b98462e3893f15a4dd0a9401 /include | |
parent | c589e03865bb31da70e0037d5c32fdaaa5f79f24 (diff) | |
download | llvm-5e664b8f7c5ba877058a3a1cdfcce8e6b7388a6a.tar.gz llvm-5e664b8f7c5ba877058a3a1cdfcce8e6b7388a6a.tar.bz2 llvm-5e664b8f7c5ba877058a3a1cdfcce8e6b7388a6a.tar.xz |
eliminate a bunch of dynamic_cast's.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@94154 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Pass.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 8178598985..0a53cbf8d0 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -152,6 +152,7 @@ public: virtual void *getAdjustedAnalysisPointer(const PassInfo *PI) { return this; } + virtual ImmutablePass *getAsImmutablePass() { return 0; } /// verifyAnalysis() - This member can be implemented by a analysis pass to /// check state of analysis information. @@ -249,6 +250,8 @@ public: /// virtual void initializePass(); + virtual ImmutablePass *getAsImmutablePass() { return this; } + /// ImmutablePasses are never run. /// bool runOnModule(Module &) { return false; } |