diff options
Diffstat (limited to 'include/llvm/Pass.h')
-rw-r--r-- | include/llvm/Pass.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Pass.h b/include/llvm/Pass.h index 5948922..58bdfc0 100644 --- a/include/llvm/Pass.h +++ b/include/llvm/Pass.h @@ -130,6 +130,11 @@ public: return Resolver; } + /// isAnalysis - Return true if this pass is implementing an analysis pass. + virtual bool isAnalysis() const { + return false; + } + /// getAnalysisUsage - This function should be overriden by passes that need /// analysis information to do their job. If a pass specifies that it uses a /// particular analysis result to this function, it can then use the |