diff options
Diffstat (limited to 'llvm/lib/Analysis/AliasDebugger.cpp')
| -rw-r--r-- | llvm/lib/Analysis/AliasDebugger.cpp | 10 | 
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/AliasDebugger.cpp b/llvm/lib/Analysis/AliasDebugger.cpp index 6868e3f..88c2875 100644 --- a/llvm/lib/Analysis/AliasDebugger.cpp +++ b/llvm/lib/Analysis/AliasDebugger.cpp @@ -71,6 +71,16 @@ namespace {        AU.setPreservesAll();                         // Does not transform code      } +    /// getAdjustedAnalysisPointer - This method is used when a pass implements +    /// an analysis interface through multiple inheritance.  If needed, it +    /// should override this to adjust the this pointer as needed for the +    /// specified pass info. +    virtual void *getAdjustedAnalysisPointer(const PassInfo *PI) { +      if (PI->isPassID(&AliasAnalysis::ID)) +        return (AliasAnalysis*)this; +      return this; +    } +          //------------------------------------------------      // Implement the AliasAnalysis API      //  | 
