summaryrefslogtreecommitdiff
path: root/include/llvm/Pass.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r--include/llvm/Pass.h3
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; }